diff options
author | kh1 <karsten.heimrich@digia.com> | 2013-11-25 16:53:04 +0100 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@digia.com> | 2013-11-25 16:53:33 +0100 |
commit | 31a0f80573edce1a08b0532327a15287298d8a2c (patch) | |
tree | 12ead8dafb8b22105251fed2e6dea78a384bccc4 /src/libs/installer/productkeycheck.h | |
parent | 42255f8756c5c92bc3312dce2d672bb2c4d6f2b7 (diff) |
Adjust ProductKeyCheck API. (in preparation for multiple pages)
Change-Id: I69d0fc9842df7fb564db57067da5f40e002b61de
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
Diffstat (limited to 'src/libs/installer/productkeycheck.h')
-rw-r--r-- | src/libs/installer/productkeycheck.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/libs/installer/productkeycheck.h b/src/libs/installer/productkeycheck.h index d5772629a..d714e2d3d 100644 --- a/src/libs/installer/productkeycheck.h +++ b/src/libs/installer/productkeycheck.h @@ -1,6 +1,6 @@ /************************************************************************** ** -** Copyright (c) 2012 Digia Plc and/or its subsidiary(-ies). +** Copyright (c) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of Installer Framework @@ -30,11 +30,9 @@ #ifndef PRODUCTKEYCHECK_H #define PRODUCTKEYCHECK_H -#include "qinstallerglobal.h" +#include "installer_global.h" #include <QString> -#include <QHash> -#include <QPointer> namespace QInstaller{ class PackageManagerCore; @@ -46,9 +44,8 @@ class ProductKeyCheckPrivate; class INSTALLER_EXPORT ProductKeyCheck { public: - ~ProductKeyCheck(); - static ProductKeyCheck *instance(QInstaller::PackageManagerCore *core = 0); - static void setPackageManagerCore(QInstaller::PackageManagerCore *core); + static ProductKeyCheck *instance(); + void init(QInstaller::PackageManagerCore *core); // was validLicense bool hasValidKey(); @@ -68,7 +65,7 @@ public: private: ProductKeyCheck(); - ProductKeyCheckPrivate *const d; + Q_DISABLE_COPY(ProductKeyCheck) }; #endif // PRODUCTKEYCHECK_H |