Index: sources/ApplicationPost.cpp =================================================================== diff -u -rc9f8f8cf3c6c37fc6460d8675c62c9442c4d4263 -rb10cf6d3e2db78ab255835ba6a450861eae4068e --- sources/ApplicationPost.cpp (.../ApplicationPost.cpp) (revision c9f8f8cf3c6c37fc6460d8675c62c9442c4d4263) +++ sources/ApplicationPost.cpp (.../ApplicationPost.cpp) (revision b10cf6d3e2db78ab255835ba6a450861eae4068e) @@ -221,3 +221,16 @@ emit didSound(ok); return ok; } + +/*! + * \brief ApplicationPost::checkYear + * \details Checks the year is greater than or equal to 2022. + * \return false if there is an issue. + */ +bool ApplicationPost::checkYear() +{ + bool ok = _content.contains(_postmsg_wifi + _postmsg_postfix_passed); + if (! ok) emit didFail(Gui::GuiAlarmID::ALARM_ID_UI_POST_FAILURE_INVALID_YEAR); + emit didYearCheck(ok); + return ok; +} Index: sources/ApplicationPost.h =================================================================== diff -u -rc9f8f8cf3c6c37fc6460d8675c62c9442c4d4263 -rb10cf6d3e2db78ab255835ba6a450861eae4068e --- sources/ApplicationPost.h (.../ApplicationPost.h) (revision c9f8f8cf3c6c37fc6460d8675c62c9442c4d4263) +++ sources/ApplicationPost.h (.../ApplicationPost.h) (revision b10cf6d3e2db78ab255835ba6a450861eae4068e) @@ -82,7 +82,7 @@ bool _isCloudSync = false ; // HIGH: : ALARM_ID_UI_POST_FAILURE_CLOUDSYNC bool _isEthernet = false ; // HIGH: : ALARM_ID_UI_POST_FAILURE_ETHERNET : this is not a Fault and not required the application to stop. bool _isSound = false ; // HIGH: : ALARM_ID_UI_POST_FAILURE_SOUND : this is not a Fault and not required the application to stop. - + bool _isYearCheck = false ; // HIGH: : ALARM_ID_UI_POST_FAILURE_INVALID_YEAR bool _isDone = false ; bool checkShaSum (); @@ -96,6 +96,7 @@ bool checkCloudSync (); bool checkEthernet (); bool checkSound (); + bool checkYear (); public: bool isShaSum () { return _isShaSum ; } @@ -109,7 +110,7 @@ bool isCloudSync () { return _isCloudSync ; } bool isEthernet () { return _isEthernet ; } bool isSound () { return _isSound ; } - + bool isYearCheck () { return _isYearCheck ; } bool isDone () { return _isDone ; } public: @@ -128,6 +129,7 @@ void didCloudSync (bool vPass); void didEthernet (bool vPass); void didSound (bool vPass); + void didYearCheck (bool vPass); void didFail(Gui::GuiAlarmID vAlarmID); void didDone(bool vPass);