aboutsummaryrefslogtreecommitdiffstats
path: root/src/m_ver_check/Utils.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2026-09-24 22:59:10 +0200
committersaturneric <[email protected]>2026-09-24 22:59:10 +0200
commit4249f0192baf88e33bfb4e47828279ae2b569a8d (patch)
tree5eea66cc8f58c6770c9777215a58c7be8f375e1b /src/m_ver_check/Utils.h
parentdocs(README): document instant messaging module and UI actions (diff)
downloadmodules-4249f0192baf88e33bfb4e47828279ae2b569a8d.tar.gz
modules-4249f0192baf88e33bfb4e47828279ae2b569a8d.zip
feat(update): add robust GitHub update checking
- replace legacy provider tasks with an injectable update checker - track release, tag, and commit lookup results independently - preserve last known good results across failed refreshes - persist schema-versioned update state and reject stale formats - add update presentation logic and refresh the update dialog UI - remove provider selection in favor of GitHub Releases - add comprehensive release-checking and presentation tests
Diffstat (limited to 'src/m_ver_check/Utils.h')
-rw-r--r--src/m_ver_check/Utils.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/m_ver_check/Utils.h b/src/m_ver_check/Utils.h
index a811aa6..3d1d035 100644
--- a/src/m_ver_check/Utils.h
+++ b/src/m_ver_check/Utils.h
@@ -28,15 +28,8 @@
#pragma once
-#include "SoftwareVersion.h"
+#include "UpdateChecker.h"
-void FillGrtWithVersionInfo(const SoftwareVersion& version);
-
-/**
- * @brief Extract a normalized "vX.Y.Z" version string from a raw release tag or
- * title. Returns an empty string when the raw text does not match.
- *
- * @param raw_tag the raw tag/title from a release feed.
- * @return QString the matched version (e.g. "v2.1.3"), or empty on no match.
- */
-auto ExtractVersionFromRawTag(const QString& raw_tag) -> QString; \ No newline at end of file
+/// Mirror the checker's state into the module's Host state namespace, where
+/// diagnostics can read it.
+void FillGrtWithVersionInfo(const UpdateSnapshot& state);