summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/downloadarchivesjob.h
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@digia.com>2014-04-03 11:24:50 +0200
committerKarsten Heimrich <karsten.heimrich@digia.com>2014-04-03 13:16:38 +0200
commit3256bdcbba24c7974cf8e78941a6b7766c613966 (patch)
tree6b84022071d4afba6f49fa1c901060b3c87983f4 /src/libs/installer/downloadarchivesjob.h
parent30537ef7b69e164b352f566d4c5d939115616f21 (diff)
Fix a possible race and some wrong assumptions about file ownership.
The download archive job does not need to cleanup the files afterwards, that's taken care of by the meta data download. That one will provide the infrastructure where the files are downloaded at. Also prevent the meta job from removing the files once they are fetched in case of a cancel event (which does not entirely mean we are going to shutdown). Change-Id: I66eeff30ef4cabb485dd4f300b2917deb7557867 Reviewed-by: Kai Koehne <kai.koehne@digia.com> Reviewed-by: Niels Weber <niels.weber@digia.com>
Diffstat (limited to 'src/libs/installer/downloadarchivesjob.h')
-rw-r--r--src/libs/installer/downloadarchivesjob.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libs/installer/downloadarchivesjob.h b/src/libs/installer/downloadarchivesjob.h
index 765d2c564..25d3daaec 100644
--- a/src/libs/installer/downloadarchivesjob.h
+++ b/src/libs/installer/downloadarchivesjob.h
@@ -45,7 +45,6 @@
#include <kdjob.h>
#include <QtCore/QPair>
-#include <QtCore/QSet>
QT_BEGIN_NAMESPACE
class QTimerEvent;
@@ -65,9 +64,10 @@ class DownloadArchivesJob : public KDJob
Q_OBJECT
public:
- explicit DownloadArchivesJob(PackageManagerCore *core = 0);
+ explicit DownloadArchivesJob(PackageManagerCore *core);
~DownloadArchivesJob();
+ int numberOfDownloads() const { return m_archivesDownloaded; }
void setArchivesToDownload(const QList<QPair<QString, QString> > &archives);
Q_SIGNALS:
@@ -102,7 +102,6 @@ private:
QList<QPair<QString, QString> > m_archivesToDownload;
bool m_canceled;
- QSet<QString> m_temporaryFiles;
QByteArray m_currentHash;
double m_lastFileProgress;
int m_progressChangedTimerId;