From 918defcaea2b570a927a2884ce0e720b03e32d8a Mon Sep 17 00:00:00 2001 From: Alex Borisov Date: Thu, 1 Dec 2011 03:11:09 +0200 Subject: FIX file transfer; FIX packet parsing bug; + many various fixes and improvements --- client/UpdatedConfig.h | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'client/UpdatedConfig.h') 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
- * 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
+ * one by one until working server is found or no other ServerEntry records left + */ + UpdatedConfig(); }; #endif \ No newline at end of file -- cgit v1.2.3