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 <QString>
32 
38  QString latest_version;
39  QString current_version;
40  bool latest_prerelease_version_from_remote = false;
41  bool latest_draft_from_remote = false;
42  bool current_version_is_a_prerelease = false;
43  bool current_version_is_drafted = false;
44  bool loading_done = false;
45  bool current_version_publish_in_remote = false;
46  QString publish_date;
47  QString release_note;
48 
55  [[nodiscard]] auto InfoValid() const -> bool { return loading_done; }
56 
63  [[nodiscard]] auto NeedUpgrade() const -> bool;
64 
71  [[nodiscard]] auto VersionWithdrawn() const -> bool;
72 
79  [[nodiscard]] auto CurrentVersionReleased() const -> bool;
80 
81  private:
82  static auto version_compare(const QString& a, const QString& b) -> int;
83 };
Definition: SoftwareVersion.h:37
auto VersionWithdrawn() const -> bool
Definition: SoftwareVersion.cpp:93
auto NeedUpgrade() const -> bool
Definition: SoftwareVersion.cpp:73
auto CurrentVersionReleased() const -> bool
Definition: SoftwareVersion.cpp:98
auto InfoValid() const -> bool
Definition: SoftwareVersion.h:55