diff options
Diffstat (limited to 'client/DownloadClient.h')
-rw-r--r-- | client/DownloadClient.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/client/DownloadClient.h b/client/DownloadClient.h index 229074f..8488d47 100644 --- a/client/DownloadClient.h +++ b/client/DownloadClient.h @@ -23,6 +23,7 @@ #include <QObject> #include "SslClient.h" +using std::map; using std::pair; using std::string; using std::vector; @@ -70,7 +71,15 @@ signals: */ void downloadFinished(); +private slots: + void FileDataRecieved(SslClient::RequestType &type, QByteArray &confdata); + private: + /** + * @brief maximum number of retries when downloading files + */ + static const int MAX_DOWNLOAD_ATTEMPTS = 3; + /** * @brief indicates that program is downloading file(s) right now */ @@ -86,6 +95,11 @@ private: */ int currentId; + /** + * @brief number of failed download attempt per single file + */ + map<string, int> status; + /** * @brief List of file to */ @@ -95,9 +109,6 @@ private: * @brief start file-by-file downloading process */ void DoDownload(); - -private slots: - void FileDataRecieved(SslClient::RequestType &type, QByteArray &confdata); }; #endif |