summaryrefslogtreecommitdiff
path: root/client/DownloadClient.h
diff options
context:
space:
mode:
authorAlex Borisov <b0ric.alex@gmail.com>2012-03-30 00:42:18 +0300
committerAlex Borisov <b0ric.alex@gmail.com>2012-03-30 00:42:18 +0300
commitfcc5a8982adc2e2b8cdd9491ac458986b94cac5a (patch)
tree824c9cc98af61c3aba073f93e6f5e8850aad0c42 /client/DownloadClient.h
parentec80c67bcfec64177910f39d31c4b20974629096 (diff)
FIX: proxy order, speed color, client update issue
Diffstat (limited to 'client/DownloadClient.h')
-rw-r--r--client/DownloadClient.h17
1 files changed, 14 insertions, 3 deletions
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 <QObject>
#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<string, int> 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