summaryrefslogtreecommitdiffstats
path: root/src/sdk/updatechecker.h
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@digia.com>2014-08-29 12:56:06 +0200
committerKarsten Heimrich <karsten.heimrich@digia.com>2014-09-04 10:41:53 +0200
commit77b1e168202e8781ddfe5c06fc1ceaea5934e855 (patch)
treeffcd3040a42ffd5086b34a034d042b0d65143aa3 /src/sdk/updatechecker.h
parente9e26f11d78def8ad8cb8f1864c61d88e3a1f0be (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/sdk/updatechecker.h')
-rw-r--r--src/sdk/updatechecker.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/sdk/updatechecker.h b/src/sdk/updatechecker.h
index 504e97604..19b34e29b 100644
--- a/src/sdk/updatechecker.h
+++ b/src/sdk/updatechecker.h
@@ -42,11 +42,16 @@
#ifndef UPDATECHECKER_H
#define UPDATECHECKER_H
-class UpdateChecker
+#include "sdkapp.h"
+
+class UpdateChecker : public SDKApp<QCoreApplication>
{
+ Q_OBJECT
+ Q_DISABLE_COPY(UpdateChecker)
+
public:
- UpdateChecker() {}
- int check(int argc, char *argv[]);
+ UpdateChecker(int &argc, char *argv[]);
+ int check();
};
#endif // UPDATECHECKER_H