diff options
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: |