10#include <QNetworkAccessManager>
14#include <QVersionNumber>
46 void updateAvailable(
const QString &latestVersion,
const QUrl &downloadUrl,
const QUrl &releaseUrl);
49 void onReplyFinished(
class QNetworkReply *reply);
51 QNetworkAccessManager m_network;
69bool 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.
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 ...
bool isMatchingReleaseAsset(const QString &name, const QString &platform, const QString &arch)
True when a GitHub release asset filename is the binary for the given platform ("Windows"/"macOS"/"Li...
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.