diff options
Diffstat (limited to 'src/libs/installer/downloadarchivesjob.h')
-rw-r--r-- | src/libs/installer/downloadarchivesjob.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libs/installer/downloadarchivesjob.h b/src/libs/installer/downloadarchivesjob.h index c75e9307a..5155c881a 100644 --- a/src/libs/installer/downloadarchivesjob.h +++ b/src/libs/installer/downloadarchivesjob.h @@ -30,7 +30,7 @@ #define DOWNLOADARCHIVESJOB_H #include "job.h" - +#include "packagemanagercore.h" #include <QtCore/QPair> #include <QtCore/QElapsedTimer> @@ -45,18 +45,17 @@ namespace KDUpdater { namespace QInstaller { class MessageBoxHandler; -class PackageManagerCore; class DownloadArchivesJob : public Job { Q_OBJECT public: - explicit DownloadArchivesJob(PackageManagerCore *core); + explicit DownloadArchivesJob(PackageManagerCore *core, const QString &objectName); ~DownloadArchivesJob(); int numberOfDownloads() const { return m_archivesDownloaded; } - void setArchivesToDownload(const QList<QPair<QString, QString> > &archives); + void setArchivesToDownload(const QList<PackageManagerCore::DownloadItem> &archives); void setExpectedTotalSize(quint64 total); Q_SIGNALS: @@ -94,7 +93,7 @@ private: int m_archivesDownloaded; int m_archivesToDownloadCount; - QList<QPair<QString, QString> > m_archivesToDownload; + QList<PackageManagerCore::DownloadItem> m_archivesToDownload; bool m_canceled; QByteArray m_currentHash; @@ -104,6 +103,8 @@ private: quint64 m_totalSizeToDownload; quint64 m_totalSizeDownloaded; QElapsedTimer m_totalDownloadSpeedTimer; + + uint m_retryCount; }; } // namespace QInstaller |