30 #ifndef _QSIMPLEUPDATER_UPDATER_H 31 #define _QSIMPLEUPDATER_UPDATER_H 35 #include <QNetworkReply> 36 #include <QNetworkAccessManager> 38 #include <QSimpleUpdater.h> 66 QString platformKey()
const;
72 bool notifyOnUpdate()
const;
79 bool notifyOnFinish()
const;
85 bool updateAvailable()
const;
91 bool downloaderEnabled()
const;
96 QString changelog()
const;
101 QString downloadUrl()
const;
106 QString latestVersion()
const;
112 QString moduleName()
const;
118 QString moduleVersion()
const;
127 bool useCustomInstallProcedures()
const;
134 void checkForUpdates();
139 void setUrl (
const QString& url);
148 void setNotifyOnUpdate (
const bool& notify);
157 void setNotifyOnFinish (
const bool& notify);
163 void setModuleName (
const QString& name);
170 void setModuleVersion (
const QString& version);
178 void setDownloaderEnabled (
const bool& enabled);
185 void setPlatformKey (
const QString& platformKey);
193 void setUseCustomInstallProcedures (
const bool& custom);
199 void checkingFinished (
const QString& url);
206 void downloadFinished (
const QString& url,
const QString& filepath);
212 void onReply (QNetworkReply* reply);
218 void setUpdateAvailable (
const bool& available);
226 bool compare (
const QString& x,
const QString& y);
231 bool m_notifyOnUpdate;
232 bool m_notifyOnFinish;
233 bool m_updateAvailable;
234 bool m_downloaderEnabled;
239 QString m_moduleName;
240 QString m_downloadUrl;
241 QString m_moduleVersion;
242 QString m_latestVersion;
245 QNetworkAccessManager* m_manager;
Definition: Downloader.h:29