LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
UpdateInfo.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <vector>
5
12namespace updates {
13
18{
19 std::string version;
20 std::string releaseUrl;
21 std::string releaseNotes;
22 bool isNewer {false};
23};
24
34{
35 std::string id;
36 std::string name;
37 std::string currentVersion;
38 std::string availableVersion;
39 std::string downloadUrl;
40 std::string apiVersion;
41 std::string minAppVersion;
42 std::string sha256;
43 bool isCompatible {false};
44};
45
53{
55 std::vector<PluginUpdateInfo> plugins;
56
57 bool HasAnyUpdate() const
58 {
59 if (app.isNewer) return true;
60 for (const auto& p : plugins)
61 if (p.isCompatible) return true;
62 return false;
63 }
64};
65
66} // namespace updates
Data structures for the application and plugin update mechanism.
Information about an available application update.
Definition UpdateInfo.hpp:18
std::string releaseNotes
Markdown release notes from GitHub API.
Definition UpdateInfo.hpp:21
std::string releaseUrl
GitHub release page URL.
Definition UpdateInfo.hpp:20
std::string version
Available version string, e.g. "1.2.0".
Definition UpdateInfo.hpp:19
bool isNewer
True when availableVersion > currently running.
Definition UpdateInfo.hpp:22
Information about a single plugin that has an available update.
Definition UpdateInfo.hpp:34
std::string name
Human-readable name.
Definition UpdateInfo.hpp:36
std::string currentVersion
Installed version ("" if not installed)
Definition UpdateInfo.hpp:37
std::string sha256
Expected SHA-256 hex digest of the ZIP.
Definition UpdateInfo.hpp:42
std::string minAppVersion
Minimum app version required by this plugin.
Definition UpdateInfo.hpp:41
std::string availableVersion
Version available in the release.
Definition UpdateInfo.hpp:38
std::string downloadUrl
Platform-specific ZIP download URL.
Definition UpdateInfo.hpp:39
bool isCompatible
API version and minAppVersion satisfied.
Definition UpdateInfo.hpp:43
std::string apiVersion
Plugin API version declared in manifest.
Definition UpdateInfo.hpp:40
std::string id
Plugin ID (matches PluginMetadata::id)
Definition UpdateInfo.hpp:35
Combined result of a single update check.
Definition UpdateInfo.hpp:53
std::vector< PluginUpdateInfo > plugins
Definition UpdateInfo.hpp:55
AppUpdateInfo app
Definition UpdateInfo.hpp:54
bool HasAnyUpdate() const
Definition UpdateInfo.hpp:57