diff options
| author | saturneric <[email protected]> | 2024-12-01 21:13:50 +0000 |
|---|---|---|
| committer | saturneric <[email protected]> | 2024-12-01 21:13:50 +0000 |
| commit | 2dc2f2e04888fcc7391ee544ee8ae3e3d042a297 (patch) | |
| tree | 9e80f3ad89dc88f2afd90be02f2bb0d059b43147 /src/m_ver_check/SoftwareVersion.h | |
| parent | feat: all users should know the meanings of update (diff) | |
| download | modules-2dc2f2e04888fcc7391ee544ee8ae3e3d042a297.tar.gz modules-2dc2f2e04888fcc7391ee544ee8ae3e3d042a297.zip | |
feat: check commit hash by current version
Diffstat (limited to 'src/m_ver_check/SoftwareVersion.h')
| -rw-r--r-- | src/m_ver_check/SoftwareVersion.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/m_ver_check/SoftwareVersion.h b/src/m_ver_check/SoftwareVersion.h index 89158aa..f66c0dd 100644 --- a/src/m_ver_check/SoftwareVersion.h +++ b/src/m_ver_check/SoftwareVersion.h @@ -41,10 +41,11 @@ struct SoftwareVersion { bool latest_draft_from_remote = false; ///< bool current_version_is_a_prerelease = false; ///< bool current_version_is_drafted = false; ///< - bool loading_done = false; ///< bool current_version_publish_in_remote = false; ///< QString publish_date; ///< QString release_note; ///< + QString remote_commit_hash_by_tag; + QString local_commit_hash; /** * @brief @@ -52,7 +53,9 @@ struct SoftwareVersion { * @return true * @return false */ - [[nodiscard]] auto InfoValid() const -> bool { return loading_done; } + [[nodiscard]] auto IsInfoValid() const -> bool { + return !latest_version.isEmpty(); + } /** * @brief @@ -76,6 +79,14 @@ struct SoftwareVersion { * @return true * @return false */ + [[nodiscard]] auto GitCommitHashMismatch() const -> bool; + + /** + * @brief + * + * @return true + * @return false + */ [[nodiscard]] auto CurrentVersionReleased() const -> bool; private: |
