29 #ifndef GPGFRONTEND_SOFTWAREVERSION_H
30 #define GPGFRONTEND_SOFTWAREVERSION_H
32 #include <boost/date_time.hpp>
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;
57 [[nodiscard]]
bool InfoVaild()
const {
return load_info_done; }
66 return load_info_done && !latest_prerelease && !latest_draft &&
67 current_version < latest_version;
77 return load_info_done && !current_version_found && current_prerelease &&
88 return load_info_done && current_version_found;
93 #endif // GPGFRONTEND_SOFTWAREVERSION_H