diff options
Diffstat (limited to 'src/libs/installer/productkeycheck.cpp')
-rw-r--r-- | src/libs/installer/productkeycheck.cpp | 30 |
1 files changed, 6 insertions, 24 deletions
diff --git a/src/libs/installer/productkeycheck.cpp b/src/libs/installer/productkeycheck.cpp index 9a9010d60..6b5699361 100644 --- a/src/libs/installer/productkeycheck.cpp +++ b/src/libs/installer/productkeycheck.cpp @@ -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 @@ -27,42 +27,24 @@ ** **************************************************************************/ -#include <productkeycheck.h> -#include <packagemanagercore.h> - -class ProductKeyCheckPrivate -{ - public: - static QPointer<QInstaller::PackageManagerCore> core; -}; - -QPointer<QInstaller::PackageManagerCore> ProductKeyCheckPrivate::core = 0; - +#include "productkeycheck.h" +#include "packagemanagercore.h" ProductKeyCheck::ProductKeyCheck() - : d(new ProductKeyCheckPrivate()) { } -ProductKeyCheck::~ProductKeyCheck() -{ - delete d; -} - -ProductKeyCheck *ProductKeyCheck::instance(QInstaller::PackageManagerCore *core) +ProductKeyCheck *ProductKeyCheck::instance() { static ProductKeyCheck instance; - if (core) - instance.setPackageManagerCore(core); return &instance; } -void ProductKeyCheck::setPackageManagerCore(QInstaller::PackageManagerCore *core) +void ProductKeyCheck::init(QInstaller::PackageManagerCore *core) { - ProductKeyCheckPrivate::core = core; + Q_UNUSED(core) } - bool ProductKeyCheck::hasValidKey() { return true; |