GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
SoftwareVersion.h
1 
29 #pragma once
30 
31 #include <module/sdk/GpgFrontendModuleSDK.h>
32 
39  QString latest_version;
40  QString current_version;
41  bool latest_prerelease_version_from_remote = false;
42  bool latest_draft_from_remote = false;
43  bool current_version_is_a_prerelease = false;
44  bool current_version_is_drafted = false;
45  bool loading_done = false;
46  bool current_version_publish_in_remote = false;
47  QString publish_date;
48  QString release_note;
49 
56  [[nodiscard]] bool InfoValid() const { return loading_done; }
57 
64  [[nodiscard]] bool NeedUpgrade() const;
65 
72  [[nodiscard]] bool VersionWithdrawn() const;
73 
80  [[nodiscard]] bool CurrentVersionReleased() const;
81 
82  private:
83  static int version_compare(const QString& a, const QString& b);
84 };
85 } // namespace GpgFrontend::Module::Integrated::VersionCheckingModule
bool VersionWithdrawn() const
Definition: SoftwareVersion.cpp:49
bool CurrentVersionReleased() const
Definition: SoftwareVersion.cpp:54
bool NeedUpgrade() const
Definition: SoftwareVersion.cpp:36