3#include <QtCore/QLoggingCategory>
4#include <QtCore/QObject>
5#include <QtCore/QString>
7Q_DECLARE_LOGGING_CATEGORY(QGCVersionCheckLog)
27 [[nodiscard]]
static bool isNewerVersion(
const QString& currentVersion,
const QString& latestVersion);
30 [[nodiscard]]
static bool shouldNotify(
const QString& latestVersion,
const QString& lastNotifiedVersion);
36 void _downloadComplete(
bool success,
const QString& localFile,
const QString& errorMsg);
38 QString _newStableVersion;
QGCVersionCheck(QObject *parent=nullptr)
static QGCVersionCheck * instance()
QString newStableVersion() const
Newer stable version available for download, empty if none.
void newStableVersionChanged()
void start()
Starts the asynchronous download of the stable version file.