GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
SoftwareVersion.h
1 
29 #ifndef GPGFRONTEND_SOFTWAREVERSION_H
30 #define GPGFRONTEND_SOFTWAREVERSION_H
31 
32 #include <boost/date_time.hpp>
33 
34 namespace GpgFrontend::UI {
40  std::string latest_version;
41  std::string current_version;
42  bool latest_prerelease = false;
43  bool latest_draft = false;
44  bool current_prerelease = false;
45  bool current_draft = false;
46  bool load_info_done = false;
47  bool current_version_found = false;
48  std::string publish_date;
49  std::string release_note;
50 
57  [[nodiscard]] bool InfoValid() const { return load_info_done; }
58 
65  [[nodiscard]] bool NeedUpgrade() const;
66 
73  [[nodiscard]] bool VersionWithDrawn() const;
74 
81  [[nodiscard]] bool CurrentVersionReleased() const;
82 
83  private:
84 
85  static int version_compare(const std::string& a, const std::string& b);
86 };
87 } // namespace GpgFrontend::UI
88 
89 #endif // GPGFRONTEND_SOFTWAREVERSION_H
Definition: FileReadTask.cpp:31
Definition: SoftwareVersion.h:39
bool CurrentVersionReleased() const
Definition: SoftwareVersion.cpp:94
bool VersionWithDrawn() const
Definition: SoftwareVersion.cpp:89
bool NeedUpgrade() const
Definition: SoftwareVersion.cpp:84
static int version_compare(const std::string &a, const std::string &b)
Definition: SoftwareVersion.cpp:31
bool InfoValid() const
Definition: SoftwareVersion.h:57