summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/packagemanagercore_p.h
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@digia.com>2014-10-01 22:37:09 +0200
committerKarsten Heimrich <karsten.heimrich@digia.com>2014-10-06 16:08:23 +0200
commitf288f29e92102f7779101a59515f86bce64a3713 (patch)
treef44ad581f551f272fb03610c401bddc73b9f10d3 /src/libs/installer/packagemanagercore_p.h
parent8941d7affa7dddf6780e79172bcb3c0d67fca128 (diff)
Move InstallerCalculator into its own header
Make it public, so that it can be used outside (e.g. in tests) Change-Id: I2a307dcd6f2eb017f9ac26de06d77deb0d668fbe Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
Diffstat (limited to 'src/libs/installer/packagemanagercore_p.h')
-rw-r--r--src/libs/installer/packagemanagercore_p.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/libs/installer/packagemanagercore_p.h b/src/libs/installer/packagemanagercore_p.h
index 6ae1632ae..06ccaf50d 100644
--- a/src/libs/installer/packagemanagercore_p.h
+++ b/src/libs/installer/packagemanagercore_p.h
@@ -92,46 +92,6 @@ public:
}
};
-class InstallerCalculator
-{
-public:
- InstallerCalculator(const QList<Component *> &allComponents);
-
- enum InstallReasonType
- {
- Automatic, // "Component(s) added as automatic dependencies"
- Dependent, // "Added as dependency for %1."
- Resolved, // "Component(s) that have resolved Dependencies"
- Selected // "Selected Component(s) without Dependencies"
- };
-
- InstallReasonType installReasonType(Component *component) const;
- QString installReasonReferencedComponent(Component *component) const;
- QString installReason(Component *component) const;
- QList<Component*> orderedComponentsToInstall() const;
- QString componentsToInstallError() const;
-
- bool appendComponentsToInstall(const QList<Component*> &components);
-
-private:
- void insertInstallReason(Component *component,
- InstallReasonType installReasonType,
- const QString &referencedComponentName = QString());
- void realAppendToInstallComponents(Component *component);
- bool appendComponentToInstall(Component *components);
- QString recursionError(Component *component);
-
- QList<Component*> m_allComponents;
- QHash<Component*, QSet<Component*> > m_visitedComponents;
- QSet<QString> m_toInstallComponentIds; //for faster lookups
- QString m_componentsToInstallError;
- //calculate installation order variables
- QList<Component*> m_orderedComponentsToInstall;
- //we can't use this reason hash as component id hash, because some reasons are ready before
- //the component is added
- QHash<QString, QPair<InstallReasonType, QString> > m_toInstallComponentIdReasonHash;
-};
-
class PackageManagerCorePrivate : public QObject
{
Q_OBJECT