diff options
author | Saturneric <[email protected]> | 2023-01-07 14:20:07 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2023-01-07 14:20:07 +0000 |
commit | 225d435423888c38e0c75f63c1d7a41283839bd5 (patch) | |
tree | 4c575375dde858e9391e585f9bf47d65090c70cc /src/ui/struct/SoftwareVersion.h | |
parent | fix: continue to solve ubuntu 18.04 build issues (diff) | |
download | GpgFrontend-225d435423888c38e0c75f63c1d7a41283839bd5.tar.gz GpgFrontend-225d435423888c38e0c75f63c1d7a41283839bd5.zip |
feat: add advanced gnupg operations
1.fix some issues
2. add advanced gnupg operations
3. add configurations information in Gnupg Help Tab
Diffstat (limited to 'src/ui/struct/SoftwareVersion.h')
-rw-r--r-- | src/ui/struct/SoftwareVersion.h | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/ui/struct/SoftwareVersion.h b/src/ui/struct/SoftwareVersion.h index da93f8c6..942efec9 100644 --- a/src/ui/struct/SoftwareVersion.h +++ b/src/ui/struct/SoftwareVersion.h @@ -54,7 +54,7 @@ struct SoftwareVersion { * @return true * @return false */ - [[nodiscard]] bool InfoVaild() const { return load_info_done; } + [[nodiscard]] bool InfoValid() const { return load_info_done; } /** * @brief @@ -62,10 +62,7 @@ struct SoftwareVersion { * @return true * @return false */ - [[nodiscard]] bool NeedUpgrade() const { - return load_info_done && !latest_prerelease && !latest_draft && - current_version < latest_version; - } + [[nodiscard]] bool NeedUpgrade() const; /** * @brief @@ -73,10 +70,7 @@ struct SoftwareVersion { * @return true * @return false */ - [[nodiscard]] bool VersionWithDrawn() const { - return load_info_done && !current_version_found && current_prerelease && - !current_draft; - } + [[nodiscard]] bool VersionWithDrawn() const; /** * @brief @@ -84,9 +78,11 @@ struct SoftwareVersion { * @return true * @return false */ - [[nodiscard]] bool CurrentVersionReleased() const { - return load_info_done && current_version_found; - } + [[nodiscard]] bool CurrentVersionReleased() const; + + private: + + static int version_compare(const std::string& a, const std::string& b); }; } // namespace GpgFrontend::UI |