diff options
Diffstat (limited to 'src/libs/installer/productkeycheck.h')
-rw-r--r-- | src/libs/installer/productkeycheck.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/libs/installer/productkeycheck.h b/src/libs/installer/productkeycheck.h index 1ecffc3d2..6d72089e2 100644 --- a/src/libs/installer/productkeycheck.h +++ b/src/libs/installer/productkeycheck.h @@ -34,6 +34,12 @@ #include <QString> #include <QHash> +#include <QPointer> + +namespace QInstaller{ + class PackageManagerCore; + class Repository; +} class ProductKeyCheckPrivate; @@ -41,7 +47,8 @@ class INSTALLER_EXPORT ProductKeyCheck { public: ~ProductKeyCheck(); - static ProductKeyCheck *instance(); + static ProductKeyCheck *instance(QInstaller::PackageManagerCore *core = 0); + static void setPackageManagerCore(QInstaller::PackageManagerCore *core); // was validLicense bool hasValidKey(); @@ -52,7 +59,10 @@ public: bool applyKey(const QStringList &arguments); // to filter none valid licenses - bool isValidLicense(const QString &fileName); + bool isValidLicenseTextFile(const QString &fileName); + + // to filter repositories not matching the license + bool isValidRepository(const QInstaller::Repository &repository) const; private: ProductKeyCheck(); |