# GpgFrontend Project: src/ui/struct/SoftwareVersion.h Source File

SoftwareVersion.h
#ifndef GPGFRONTEND_SOFTWAREVERSION_H
#define GPGFRONTEND_SOFTWAREVERSION_H
#include <boost/date_time.hpp>
namespace GpgFrontend::UI {
struct SoftwareVersion {
std::string latest_version;
std::string current_version;
bool latest_prerelease = false;
bool latest_draft = false;
bool current_prerelease = false;
bool current_draft = false;
bool load_info_done = false;
bool current_version_found = false;
std::string publish_date;
std::string release_note;
[[nodiscard]] bool InfoValid() const { return load_info_done; }
[[nodiscard]] bool NeedUpgrade() const;
[[nodiscard]] bool VersionWithDrawn() const;
[[nodiscard]] bool CurrentVersionReleased() const;
private:
static int version_compare(const std::string& a, const std::string& b);
};
} // namespace GpgFrontend::UI
#endif // GPGFRONTEND_SOFTWAREVERSION_H
GpgFrontend::UI
Definition: FileReadTask.cpp:29
GpgFrontend::UI::SoftwareVersion
Definition: SoftwareVersion.h:39
GpgFrontend::UI::SoftwareVersion::CurrentVersionReleased
bool CurrentVersionReleased() const
Definition: SoftwareVersion.cpp:99
GpgFrontend::UI::SoftwareVersion::VersionWithDrawn
bool VersionWithDrawn() const
Definition: SoftwareVersion.cpp:94
GpgFrontend::UI::SoftwareVersion::NeedUpgrade
bool NeedUpgrade() const
Definition: SoftwareVersion.cpp:83
GpgFrontend::UI::SoftwareVersion::version_compare
static int version_compare(const std::string &a, const std::string &b)
Definition: SoftwareVersion.cpp:31
GpgFrontend::UI::SoftwareVersion::InfoValid
bool InfoValid() const
Definition: SoftwareVersion.h:57