|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <QGCVersionCheck.h>
Inheritance diagram for QGCVersionCheck:
Collaboration diagram for QGCVersionCheck:Signals | |
| void | newStableVersionChanged () |
Public Member Functions | |
| QGCVersionCheck (QObject *parent=nullptr) | |
| void | start () |
| Starts the asynchronous download of the stable version file. | |
| QString | newStableVersion () const |
| Newer stable version available for download, empty if none. | |
Static Public Member Functions | |
| static QGCVersionCheck * | instance () |
| static bool | isNewerVersion (const QString ¤tVersion, const QString &latestVersion) |
| static bool | shouldNotify (const QString &latestVersion, const QString &lastNotifiedVersion) |
Checks for a newer stable release and notifies the user once per new version. Versions are of the form "v<major>.<minor>.<patch>".
Definition at line 11 of file QGCVersionCheck.h.
|
explicit |
Definition at line 39 of file QGCVersionCheck.cc.
|
static |
Definition at line 43 of file QGCVersionCheck.cc.
Referenced by QGroundControlQmlGlobal::newStableVersion(), and QGroundControlQmlGlobal::QGroundControlQmlGlobal().
|
static |
Definition at line 48 of file QGCVersionCheck.cc.
|
inline |
Newer stable version available for download, empty if none.
Definition at line 24 of file QGCVersionCheck.h.
Referenced by QGroundControlQmlGlobal::newStableVersion().
|
signal |
Referenced by QGroundControlQmlGlobal::QGroundControlQmlGlobal().
|
static |
Definition at line 55 of file QGCVersionCheck.cc.
Referenced by FirmwarePlugin::isStableFirmwareVersionUnseen().
| void QGCVersionCheck::start | ( | ) |
Starts the asynchronous download of the stable version file.
Definition at line 66 of file QGCVersionCheck.cc.
References QGCFileDownload::errorString(), QGCFileDownload::finished(), QGCCorePlugin::instance(), QGCCorePlugin::stableVersionCheckFileUrl(), and QGCFileDownload::start().