18#ifndef __qSlicerApplicationUpdateManager_h
19#define __qSlicerApplicationUpdateManager_h
27#include "qSlicerBaseQTCoreExport.h"
29class qSlicerApplicationUpdateManagerPrivate;
56 typedef qSlicerApplicationUpdateManagerPrivate
Pimpl;
168 QScopedPointer<qSlicerApplicationUpdateManagerPrivate>
d_ptr;
void setSlicerRequirements(const QString &revision, const QString &os, const QString &arch)
Set Slicer revision, operating system and architecture.
QString latestReleaseVersion
static bool isApplicationUpdateEnabled()
void setAutoUpdateCheck(bool enable)
Enable/disable automatic periodic update checks on the server.
QUrl applicationDownloadPageUrl
bool onReleaseInfoQueryFinished(const QUuid &requestId)
QObject Superclass
Superclass typedef.
QScopedPointer< qSlicerApplicationUpdateManagerPrivate > d_ptr
bool checkForUpdate(bool force, bool waitForCompletion)
Check for updates. Reads the last cached value if recently queries from the server....
QString latestReleaseRevision() const
Return latest application release version (e.g., 30893)
qSlicerApplicationUpdateManager(QObject *parent=nullptr)
Constructor.
void updateCheckCompleted(bool success)
Emitted when availability update check is completed.
void updateAvailable(bool isAvailable)
qSlicerApplicationUpdateManager Self
Self typedef.
void refreshUpdateAvailable()
QDateTime lastUpdateCheckTime() const
void autoUpdateCheckChanged()
Emitted when autoUpdateCheck property is changed.
bool autoUpdateCheck
Periodically check for updates on the server.
void slicerRequirementsChanged(const QString &revision, const QString &os, const QString &arch)
Q_INVOKABLE QUrl serverUrl() const
Application update server URL used to perform API calls.
qSlicerApplicationUpdateManagerPrivate Pimpl
Pimpl typedef.