GpgFrontend-Doxygen/docs/latex/SoftwareVersion_8h_source.tex
2022-05-09 03:59:26 +08:00

43 lines
3.0 KiB
TeX

\hypertarget{SoftwareVersion_8h_source}{}\doxysection{Software\+Version.\+h}
\label{SoftwareVersion_8h_source}\index{src/ui/struct/SoftwareVersion.h@{src/ui/struct/SoftwareVersion.h}}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 }
\DoxyCodeLine{29 \textcolor{preprocessor}{\#ifndef GPGFRONTEND\_SOFTWAREVERSION\_H}}
\DoxyCodeLine{30 \textcolor{preprocessor}{\#define GPGFRONTEND\_SOFTWAREVERSION\_H}}
\DoxyCodeLine{31 }
\DoxyCodeLine{32 \textcolor{preprocessor}{\#include <boost/date\_time.hpp>}}
\DoxyCodeLine{33 }
\DoxyCodeLine{34 \textcolor{keyword}{namespace }\mbox{\hyperlink{namespaceGpgFrontend_1_1UI}{GpgFrontend::UI}} \{}
\DoxyCodeLine{39 \textcolor{keyword}{struct }\mbox{\hyperlink{structGpgFrontend_1_1UI_1_1SoftwareVersion}{SoftwareVersion}} \{}
\DoxyCodeLine{40 std::string latest\_version; }
\DoxyCodeLine{41 std::string current\_version; }
\DoxyCodeLine{42 \textcolor{keywordtype}{bool} latest\_prerelease = \textcolor{keyword}{false}; }
\DoxyCodeLine{43 \textcolor{keywordtype}{bool} latest\_draft = \textcolor{keyword}{false}; }
\DoxyCodeLine{44 \textcolor{keywordtype}{bool} current\_prerelease = \textcolor{keyword}{false}; }
\DoxyCodeLine{45 \textcolor{keywordtype}{bool} current\_draft = \textcolor{keyword}{false}; }
\DoxyCodeLine{46 \textcolor{keywordtype}{bool} load\_info\_done = \textcolor{keyword}{false}; }
\DoxyCodeLine{47 \textcolor{keywordtype}{bool} current\_version\_found = \textcolor{keyword}{false}; }
\DoxyCodeLine{48 std::string publish\_date; }
\DoxyCodeLine{49 std::string release\_note; }
\DoxyCodeLine{50 }
\DoxyCodeLine{57 [[nodiscard]] \textcolor{keywordtype}{bool} \mbox{\hyperlink{structGpgFrontend_1_1UI_1_1SoftwareVersion_abc311fd0e15da1a04b995587ca74e1a6}{NeedUpgrade}}()\textcolor{keyword}{ const }\{}
\DoxyCodeLine{58 \textcolor{keywordflow}{return} load\_info\_done \&\& !latest\_prerelease \&\& !latest\_draft \&\&}
\DoxyCodeLine{59 current\_version < latest\_version;}
\DoxyCodeLine{60 \}}
\DoxyCodeLine{61 }
\DoxyCodeLine{68 [[nodiscard]] \textcolor{keywordtype}{bool} \mbox{\hyperlink{structGpgFrontend_1_1UI_1_1SoftwareVersion_a587a3fdb047a15c3771c2af5eebdbf4b}{VersionWithDrawn}}()\textcolor{keyword}{ const }\{}
\DoxyCodeLine{69 \textcolor{keywordflow}{return} load\_info\_done \&\& !current\_version\_found \&\& current\_prerelease \&\&}
\DoxyCodeLine{70 !current\_draft;}
\DoxyCodeLine{71 \}}
\DoxyCodeLine{72 }
\DoxyCodeLine{79 [[nodiscard]] \textcolor{keywordtype}{bool} \mbox{\hyperlink{structGpgFrontend_1_1UI_1_1SoftwareVersion_a43663cd2d086299a0f0304f5bde9c663}{CurrentVersionReleased}}()\textcolor{keyword}{ const }\{}
\DoxyCodeLine{80 \textcolor{keywordflow}{return} load\_info\_done \&\& current\_version\_found;}
\DoxyCodeLine{81 \}}
\DoxyCodeLine{82 \};}
\DoxyCodeLine{83 \} \textcolor{comment}{// namespace GpgFrontend::UI}}
\DoxyCodeLine{84 }
\DoxyCodeLine{85 \textcolor{preprocessor}{\#endif }\textcolor{comment}{// GPGFRONTEND\_SOFTWAREVERSION\_H}}
\end{DoxyCode}