10#include <QNetworkAccessManager>
14#include <QVersionNumber>
50 void updateAvailable(
const QString &latestVersion,
const QUrl &downloadUrl,
const QUrl &releaseUrl);
53 void onReplyFinished(
class QNetworkReply *reply);
55 QNetworkAccessManager m_network;
73bool shouldOfferUpdate(
const QString &tagName,
const QVersionNumber ¤tVersion,
const QString &skippedVersion);
bool isSafeGitHubUrl(const QUrl &url)
True when url is safe to download from or hand to the OS's URL handler.
QString releaseAssetKey(const QString &platform, const QString &arch)
The key in latest-release.json holding the download URL for the given platform ("Windows"/"macOS"/"Li...
bool shouldOfferUpdate(const QString &tagName, const QVersionNumber ¤tVersion, const QString &skippedVersion)
True when the release tagged tagName should be offered to a user running currentVersion who may have ...
UpdateChecker(QObject *parent=nullptr)
void updateAvailable(const QString &latestVersion, const QUrl &downloadUrl, const QUrl &releaseUrl)
Emitted when a newer release is available and has not been suppressed.
void checkForUpdates()
Initiates an asynchronous version check.