Query, explain, cancel buttons are now enabled/disabled when the state of the connection changes.

This commit is contained in:
Eelke Klein 2017-01-15 21:38:07 +01:00
parent d19741f111
commit a32e2c83ca
3 changed files with 32 additions and 14 deletions

View file

@ -27,6 +27,7 @@ public:
ASyncDBConnection();
State state() const;
// void setupConnection(const std::string &connstring);
void setupConnection(const ConnectionConfig &config);
void closeConnection();
@ -81,6 +82,7 @@ private:
// std::string m_initString;
ConnectionConfig m_config;
State m_state = State::NotConnected;
Thread();
@ -94,7 +96,6 @@ private:
private:
State m_state = State::NotConnected;
Win32Event m_stopEvent;
Pgsql::Connection m_connection;