5#include <QNetworkAccessManager>
6#include <QNetworkReply>
69 QNetworkReply* reply);
81 static std::string
StripV(
const QString& tagName);
87 static bool VersionGreater(
const std::string& a,
const std::string& b);
93 void OnSslErrors(QNetworkReply* reply,
const QList<QSslError>& errors);
96 "https://api.github.com/repos/bula173/LogViewer/releases/latest";
Asynchronous update checker using Qt6::Network.
Definition UpdateChecker.hpp:27
void OnSslErrors(QNetworkReply *reply, const QList< QSslError > &errors)
Definition UpdateChecker.cpp:405
static bool IsPluginCompatible(const updates::PluginUpdateInfo &info)
Returns true when manifest apiVersion and minAppVersion are compatible with the running application.
Definition UpdateChecker.cpp:63
bool m_checking
Definition UpdateChecker.hpp:91
static constexpr const char * kGitHubApiUrl
Definition UpdateChecker.hpp:95
void PluginDownloadProgress(QString pluginId, qint64 bytesReceived, qint64 bytesTotal)
void OnManifestReply(QNetworkReply *reply)
Definition UpdateChecker.cpp:220
static std::string StripV(const QString &tagName)
Definition UpdateChecker.cpp:40
QNetworkAccessManager m_net
Definition UpdateChecker.hpp:89
bool IsChecking() const
True while an update check is in progress.
Definition UpdateChecker.hpp:52
void PluginDownloadComplete(QString pluginId, QString tempFilePath)
void UpdateCheckComplete(updates::UpdateCheckResult result)
void DoPluginDownload(const updates::PluginUpdateInfo &info, QNetworkReply *reply)
Definition UpdateChecker.cpp:339
static QString PlatformId()
Definition UpdateChecker.cpp:35
void CheckAsync()
Start an asynchronous update check.
Definition UpdateChecker.cpp:101
void DownloadPlugin(const updates::PluginUpdateInfo &info)
Download a plugin ZIP to a temp location then verify its checksum.
Definition UpdateChecker.cpp:303
static bool VersionGreater(const std::string &a, const std::string &b)
Semantic version comparison: returns true when a > b. Handles "major.minor.patch" strings.
Definition UpdateChecker.cpp:48
void UpdateCheckFailed(QString errorMessage)
updates::UpdateCheckResult m_pending
Assembled during the two-step check.
Definition UpdateChecker.hpp:90
void PluginDownloadFailed(QString pluginId, QString errorMessage)
void OnReleaseReply(QNetworkReply *reply)
Definition UpdateChecker.cpp:134
Definition ConfigEditorDialog.cpp:19
Information about a single plugin that has an available update.
Definition UpdateInfo.hpp:34
Combined result of a single update check.
Definition UpdateInfo.hpp:53