diff options
Diffstat (limited to 'client/UpdatedConfig.h')
-rw-r--r-- | client/UpdatedConfig.h | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/client/UpdatedConfig.h b/client/UpdatedConfig.h index 2e4deac..a9def0b 100644 --- a/client/UpdatedConfig.h +++ b/client/UpdatedConfig.h @@ -18,8 +18,8 @@ class QTimer; class UpdatedConfig: public QObject, public Config { Q_OBJECT + public: - /** * @brief Retrieve application-wide instance of Config class * @return Pointer to singleton instance of Config class @@ -31,17 +31,20 @@ public: * @return address of server to communicate with ot empty string */ string GetServerAddr(); + signals: /** * @brief Signal is emitted when client configuration is updated */ void updated(); + +private slots: + void update(); + void connectionError(); + void gotServerReply(SslClient::RequestType &type, QByteArray &confdata); + private: - /** - * @brief creates an instance and tries to connect to servers from config.cfg<br/> - * one by one until working server is found or no other ServerEntry records left - */ - UpdatedConfig(); + static const int UPDATED_STATE_FULL = 0x7C; /** * @brief Pointer to the singleton Config instance @@ -85,10 +88,12 @@ private: * value and any of SslClient::RequestType values */ unsigned char updateStatus; -private slots: - void update(); - void connectionError(); - void gotServerReply(SslClient::RequestType &type, QByteArray &confdata); + + /** + * @brief creates an instance and tries to connect to servers from config.cfg<br/> + * one by one until working server is found or no other ServerEntry records left + */ + UpdatedConfig(); }; #endif
\ No newline at end of file |