18 #ifndef __qSlicerApplicationUpdateManager_h 19 #define __qSlicerApplicationUpdateManager_h 27 #include "qSlicerBaseQTCoreExport.h" 29 class qSlicerApplicationUpdateManagerPrivate;
42 Q_PROPERTY(QString slicerRevision READ slicerRevision)
43 Q_PROPERTY(QString slicerOs READ slicerOs)
44 Q_PROPERTY(QString slicerArch READ slicerArch)
46 Q_PROPERTY(
bool autoUpdateCheck READ autoUpdateCheck WRITE setAutoUpdateCheck NOTIFY autoUpdateCheckChanged)
47 Q_PROPERTY(
bool isUpdateAvailable READ isUpdateAvailable NOTIFY updateAvailable)
48 Q_PROPERTY(QString latestReleaseVersion READ latestReleaseVersion)
49 Q_PROPERTY(QUrl applicationDownloadPageUrl READ applicationDownloadPageUrl)
56 typedef qSlicerApplicationUpdateManagerPrivate
Pimpl;
79 Q_INVOKABLE QUrl serverUrl()const;
81 bool autoUpdateCheck()const;
88 bool checkForUpdate(
bool force,
bool waitForCompletion);
92 QDateTime lastUpdateCheckTime() const;
96 bool isUpdateAvailable() const;
99 QString latestReleaseVersion() const;
102 QString latestReleaseRevision() const;
106 QUrl applicationDownloadPageUrl() const;
110 QString slicerRevision()const;
114 QString slicerOs()const;
118 QString slicerArch()const;
130 void setSlicerRequirements(const QString& revision, const QString& os, const QString& arch);
134 static
bool isApplicationUpdateEnabled();
140 void checkForUpdate();
143 void setAutoUpdateCheck(
bool enable);
149 void updateAvailable(
bool isAvailable);
152 void updateCheckCompleted(
bool success);
156 void slicerRequirementsChanged(const QString& revision, const QString& os, const QString& arch);
160 void autoUpdateCheckChanged();
164 bool onReleaseInfoQueryFinished(const QUuid& requestId);
165 void refreshUpdateAvailable();
168 QScopedPointer<qSlicerApplicationUpdateManagerPrivate> d_ptr;
qSlicerApplicationUpdateManagerPrivate Pimpl
Pimpl typedef.
Class querying application updates on the download server.
QObject Superclass
Superclass typedef.