summaryrefslogtreecommitdiffstats
path: root/src/downloadManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/downloadManager.h')
-rw-r--r--src/downloadManager.h23
1 files changed, 20 insertions, 3 deletions
diff --git a/src/downloadManager.h b/src/downloadManager.h
index bf2d341..98381a2 100644
--- a/src/downloadManager.h
+++ b/src/downloadManager.h
@@ -1,3 +1,20 @@
+/*
+# Copyright (c) 2010,2011 - RZ Uni Freiburg
+# Copyright (c) 2010,2011 - OpenSLX Project
+#
+# This program/file is free software distributed under the GPL version 2.
+# See http://openslx.org/COPYING
+#
+# If you have any feedback please consult http://openslx.org/feedback and
+# send your feedback to feedback@openslx.org
+#
+# General information about OpenSLX can be found under http://openslx.org
+#
+#
+# Helper class managing downloads.
+#
+*/
+
#ifndef DOWNLOADMANAGER_H
#define DOWNLOADMANAGER_H
@@ -11,6 +28,7 @@ extern bool debug;
extern QUrl baseURL;
extern QString binPath;
extern QString downloadPath;
+extern int updateInterval;
class downloadManager : public QObject
@@ -22,16 +40,15 @@ public:
private:
void processDownloadRequest(QUrl& url);
- // Object required for downloading.
QNetworkAccessManager* qnam;
QQueue<QUrl> dlQ;
QNetworkRequest request;
QNetworkReply* currentDownload;
QFile outfile;
QDir downloadDir;
- // Download-in-progress flag.
bool dip;
- int currentProgress;
+ int lastProgress;
+
static int downloaded;
QString currentTargetFilename;