summaryrefslogtreecommitdiff
path: root/client/UpdatedConfig.h
diff options
context:
space:
mode:
authorAlex Borisov <borisov.alexandr@rambler.ru>2011-12-01 03:11:09 +0200
committerAlex Borisov <borisov.alexandr@rambler.ru>2011-12-01 03:11:09 +0200
commit918defcaea2b570a927a2884ce0e720b03e32d8a (patch)
tree5c05b21f2c565a3ccc0124edf3af175657205d04 /client/UpdatedConfig.h
parent70dc6021943eacded7c26f2ca66375f64f19d819 (diff)
FIX file transfer; FIX packet parsing bug; + many various fixes and improvements
Diffstat (limited to 'client/UpdatedConfig.h')
-rw-r--r--client/UpdatedConfig.h25
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