summaryrefslogtreecommitdiff
path: root/client/DownloadClient.h
diff options
context:
space:
mode:
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