12 #include <QNetworkReply>
13 #include <QNetworkAccessManager>
36 QString openUrl()
const;
37 QString changelog()
const;
38 QString moduleName()
const;
39 QString downloadUrl()
const;
40 QString platformKey()
const;
41 QString moduleVersion()
const;
42 QString latestVersion()
const;
43 QString userAgentString()
const;
44 bool mandatoryUpdate()
const;
46 bool customAppcast()
const;
47 bool notifyOnUpdate()
const;
48 bool notifyOnFinish()
const;
49 bool updateAvailable()
const;
50 bool downloaderEnabled()
const;
51 bool useCustomInstallProcedures()
const;
54 void checkForUpdates();
55 void setUrl(
const QString &url);
56 void setModuleName(
const QString &
name);
57 void setNotifyOnUpdate(
const bool notify);
58 void setNotifyOnFinish(
const bool notify);
59 void setUserAgentString(
const QString &agent);
60 void setModuleVersion(
const QString &
version);
61 void setDownloaderEnabled(
const bool enabled);
62 void setPlatformKey(
const QString &platformKey);
63 void setUseCustomAppcast(
const bool customAppcast);
64 void setUseCustomInstallProcedures(
const bool custom);
65 void setMandatoryUpdate(
const bool mandatory_update);
68 void onReply(QNetworkReply *reply);
69 void setUpdateAvailable(
const bool available);
72 bool compare(
const QString &x,
const QString &y);
76 QString m_userAgentString;
79 bool m_notifyOnUpdate;
80 bool m_notifyOnFinish;
81 bool m_updateAvailable;
82 bool m_downloaderEnabled;
83 bool m_mandatoryUpdate;
89 QString m_downloadUrl;
90 QString m_moduleVersion;
91 QString m_latestVersion;
94 QNetworkAccessManager *m_manager;
Implements an integrated file downloader with a nice UI.
Downloads and interprests the update definition file.
void downloadFinished(const QString &url, const QString &filepath)
void checkingFinished(const QString &url)
void appcastDownloaded(const QString &url, const QByteArray &data)