From fcc5a8982adc2e2b8cdd9491ac458986b94cac5a Mon Sep 17 00:00:00 2001 From: Alex Borisov Date: Fri, 30 Mar 2012 00:42:18 +0300 Subject: FIX: proxy order, speed color, client update issue --- client/DownloadClient.h | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'client/DownloadClient.h') diff --git a/client/DownloadClient.h b/client/DownloadClient.h index 8af8131..3e03718 100644 --- a/client/DownloadClient.h +++ b/client/DownloadClient.h @@ -8,6 +8,7 @@ #include #include "SslClient.h" +using std::map; using std::pair; using std::string; using std::vector; @@ -55,7 +56,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 */ @@ -71,6 +80,11 @@ private: */ int currentId; + /** + * @brief number of failed download attempt per single file + */ + map status; + /** * @brief List of file to */ @@ -80,9 +94,6 @@ private: * @brief start file-by-file downloading process */ void DoDownload(); - -private slots: - void FileDataRecieved(SslClient::RequestType &type, QByteArray &confdata); }; #endif -- cgit v1.2.3