The list of connections is now saved and loaded on program shutdown and start.

This commit is contained in:
Eelke Klein 2017-01-15 12:27:36 +01:00
parent cf4d6e769b
commit 7181c7f1e7
8 changed files with 128 additions and 44 deletions

View file

@ -17,8 +17,8 @@ class ConnectionConfig {
public:
ConnectionConfig();
void setDescription(std::string desc);
const std::string& description() const;
void setName(std::string desc);
const std::string& name() const;
void setHost(std::string host);
const std::string& host() const;
@ -57,7 +57,7 @@ public:
const char * const * getValues() const;
private:
std::string m_description;
std::string m_name;
std::string m_host;
std::string m_hostaddr;
std::string m_port = "5432";