diff options
author | Alex Borisov <borisov.alexandr@rambler.ru> | 2011-11-12 00:42:46 +0200 |
---|---|---|
committer | Alex Borisov <borisov.alexandr@rambler.ru> | 2011-11-12 00:42:46 +0200 |
commit | 348104dd920480815504c28eaf12e193fd3e9ce9 (patch) | |
tree | ee2766908b00a36797204c0747300fc6f787ca37 /client/UpdatedConfig.h | |
parent | d9a7ccf4eb0fe6d44cf1a7361b331889a98ff85b (diff) |
Read all configs from server, everywhere. Docs. Code to represent server reconnection problem
Diffstat (limited to 'client/UpdatedConfig.h')
-rw-r--r-- | client/UpdatedConfig.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/client/UpdatedConfig.h b/client/UpdatedConfig.h index 669c126..041fc45 100644 --- a/client/UpdatedConfig.h +++ b/client/UpdatedConfig.h @@ -8,6 +8,13 @@ class QTimer; + +/** + * @brief singleton class that can update it's configuration<br/> + * -# ServerEntry is read from servers list + * -# Trying to connect every Config::ServerEntry::retryTimeout + * -# When total time for all retries exceeds Config::ServerEntry::timeout go to the next ServerEntry + */ class UpdatedConfig: public QObject, public Config { Q_OBJECT @@ -19,6 +26,10 @@ public: */ static UpdatedConfig *CurrentConfig(); 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(); /** @@ -27,7 +38,7 @@ private: static UpdatedConfig *self; /** - * @brief SslCLient instance that connects to server and retrieves config + * @brief SslClient instance that connects to server and retrieves config */ SslClient *client; @@ -59,7 +70,7 @@ private: /** * @brief value indicating which config parts are already updated<br/> - * to check if some part is updated just apply && to this<br/> + * to check if some part is updated just apply & to this<br/> * value and any of SslClient::RequestType values */ unsigned char updateStatus; |