summaryrefslogtreecommitdiffstats
path: root/installerbuilder/libinstaller/getrepositorymetainfojob.h
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@nokia.com>2012-01-23 16:14:34 +0100
committerKarsten Heimrich <karsten.heimrich@nokia.com>2012-01-23 16:19:07 +0100
commitcc793a71634288014d5ada65e83380bcd6f1b529 (patch)
tree2785fd11c07afc3a2e6084a51782a3b7ab5eb1f7 /installerbuilder/libinstaller/getrepositorymetainfojob.h
parent2df217fc1738b5d0c01c1fdd7ee07df57717ca2a (diff)
Fix I247cca06386eee0f1af084ac4c15a813e38c3f02.
We need to update the repositories during fetch and restart afterwards. Thought we can't add them always, as otherwise we would restart again and again without fetching the actual meta data. Fully untested. Change-Id: I4420bfed56e060c67ce12cb684d422bcd0904bf3 Reviewed-by: Alexander Lenhardt <alexander.lenhardt@nokia.com>
Diffstat (limited to 'installerbuilder/libinstaller/getrepositorymetainfojob.h')
-rw-r--r--installerbuilder/libinstaller/getrepositorymetainfojob.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/installerbuilder/libinstaller/getrepositorymetainfojob.h b/installerbuilder/libinstaller/getrepositorymetainfojob.h
index 75f8794fd..64467887d 100644
--- a/installerbuilder/libinstaller/getrepositorymetainfojob.h
+++ b/installerbuilder/libinstaller/getrepositorymetainfojob.h
@@ -28,7 +28,6 @@
#include <kdjob.h>
-#include <QtCore/QHash>
#include <QtCore/QPointer>
#include <QtCore/QString>
#include <QtCore/QStringList>
@@ -46,6 +45,7 @@ namespace KDUpdater {
namespace QInstaller {
class GetRepositoriesMetaInfoJob;
+class PackageManagerCorePrivate;
class INSTALLER_EXPORT GetRepositoryMetaInfoJob : public KDJob
{
@@ -54,7 +54,7 @@ class INSTALLER_EXPORT GetRepositoryMetaInfoJob : public KDJob
friend class QInstaller::GetRepositoriesMetaInfoJob;
public:
- explicit GetRepositoryMetaInfoJob(const QByteArray &publicKey = QByteArray(), QObject *parent = 0);
+ explicit GetRepositoryMetaInfoJob(PackageManagerCorePrivate *corePrivate, QObject *parent = 0);
~GetRepositoryMetaInfoJob();
Repository repository() const;
@@ -66,8 +66,6 @@ public:
QString temporaryDirectory() const;
QString releaseTemporaryDirectory() const;
- QHash<QString, QPair<Repository, Repository> > repositoryUpdates() const;
-
private:
/* reimp */ void doStart();
/* reimp */ void doCancel();
@@ -103,8 +101,7 @@ private:
bool m_waitForDone;
QThreadPool m_threadPool;
-
- QHash<QString, QPair<Repository, Repository> > m_repositoryUpdates;
+ PackageManagerCorePrivate *m_corePrivate;
};
} // namespace QInstaller