1 #ifndef UPDATER_IMPL_UPDATER_H
2 #define UPDATER_IMPL_UPDATER_H
13 class DefaultUpdater : public ::Updater {
19 QString getAppName() const { return appName; }
20 void setAppName(const QString &value) { appName = value; }
22 QIcon getIcon() const { return icon; }
23 void setIcon(const QIcon &value) { icon = value; }
25 QString getLocalVersion() const { return localVersion; }
26 void setLocalVersion(const QString &value) { localVersion = value; }
28 QUrl getManifestUrl() const { return manifestUrl; }
29 void setManifestUrl(const QUrl &value) { manifestUrl = value; }
31 void setCheckInterval(const qint64 &value);
33 /// A fixed download url. In alternative, the Parser impl can set the download url from the
35 void setDownloadUrl(const QUrl &value) { downloadUrl = value; }
37 void setInstaller(Installer *value);
39 Parser *getParser() const { return parser; }
40 void setParser(Parser *value);
42 Downloader *downloadUpdate();
43 Downloader *getDownloader() const { return downloader; }
45 void checkAndShowUI();
46 void checkAndMaybeShowUI();
47 void checkWithoutUI();
55 QString appName = QGuiApplication::applicationDisplayName();
56 QIcon icon = QGuiApplication::windowIcon();
57 QString localVersion = QCoreApplication::applicationVersion();
60 qint64 checkInterval = 86400;
62 Downloader *downloader = nullptr;
64 QString downloadedFilename;
66 Installer *installer = nullptr;
67 Parser *parser = nullptr;
69 Dialog *dialog = nullptr;
74 } // namespace updater
76 #endif // UPDATER_IMPL_UPDATER_H