diff options
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; |