config: add ip:port part history save.
This commit is contained in:
@@ -175,4 +175,14 @@ QString GlobalData::GetRemoteRoot() const
|
||||
QString GlobalData::GetRemoteID() const
|
||||
{
|
||||
return RemoteID_;
|
||||
}
|
||||
}
|
||||
|
||||
std::string GlobalData::GetConfigPath() const
|
||||
{
|
||||
return ConfigPath_;
|
||||
}
|
||||
|
||||
void GlobalData::SetConfigPath(const std::string& path)
|
||||
{
|
||||
ConfigPath_ = path;
|
||||
}
|
||||
|
||||
@@ -20,6 +20,8 @@ public:
|
||||
QString GetLocalID() const;
|
||||
QString GetRemoteRoot() const;
|
||||
QString GetRemoteID() const;
|
||||
std::string GetConfigPath() const;
|
||||
void SetConfigPath(const std::string& path);
|
||||
|
||||
private:
|
||||
GlobalData() = default;
|
||||
@@ -30,6 +32,7 @@ public:
|
||||
QString RemoteRoot_;
|
||||
QString LocalID_;
|
||||
QString RemoteID_;
|
||||
std::string ConfigPath_;
|
||||
};
|
||||
|
||||
class Util : public QObject
|
||||
|
||||
Reference in New Issue
Block a user