diff options
author | kh1 <karsten.heimrich@digia.com> | 2014-08-29 12:56:06 +0200 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@digia.com> | 2014-09-04 10:41:53 +0200 |
commit | 77b1e168202e8781ddfe5c06fc1ceaea5934e855 (patch) | |
tree | ffcd3040a42ffd5086b34a034d042b0d65143aa3 /src/libs/installer/productkeycheck.h | |
parent | e9e26f11d78def8ad8cb8f1864c61d88e3a1f0be (diff) |
Split and implement new installer base, update checker.
Based on the former patches, split the installer base into its
own class. Use the new binary content read functions. Adjust uses
to match the new classes. Adjust installer base /update checker
signature and inheritance. Remove all now superfluous functions
from binary content. Core engine instantiates the operations now,
makes reading and writing more generic. Move product key check
into QInstaller namespace. Make use of the new command line parser.
Change-Id: I00aff79085b69ce627906881b43f374681ea7e91
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src/libs/installer/productkeycheck.h')
-rw-r--r-- | src/libs/installer/productkeycheck.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/libs/installer/productkeycheck.h b/src/libs/installer/productkeycheck.h index 3df747f37..02e8a76a5 100644 --- a/src/libs/installer/productkeycheck.h +++ b/src/libs/installer/productkeycheck.h @@ -1,6 +1,6 @@ /************************************************************************** ** -** Copyright (c) 2013 Digia Plc and/or its subsidiary(-ies). +** Copyright (c) 2013-2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of Installer Framework @@ -35,18 +35,18 @@ #include <QString> namespace QInstaller{ - class PackageManagerCore; - class Repository; -} - +class PackageManagerCore; class ProductKeyCheckPrivate; +class Repository; class INSTALLER_EXPORT ProductKeyCheck { + Q_DISABLE_COPY(ProductKeyCheck) + public: ~ProductKeyCheck(); static ProductKeyCheck *instance(); - void init(QInstaller::PackageManagerCore *core); + void init(PackageManagerCore *core); // was validLicense bool hasValidKey(); @@ -67,7 +67,8 @@ public: private: ProductKeyCheck(); ProductKeyCheckPrivate *const d; - Q_DISABLE_COPY(ProductKeyCheck) }; +} // namespace QInstaller + #endif // PRODUCTKEYCHECK_H |