Index: sources/ApplicationPost.cpp =================================================================== diff -u -r7e503c5459ec77a2816d6c7789da9b206cedbe8a -re5577fbd781ded0678882680d5d31f08f56c9c68 --- sources/ApplicationPost.cpp (.../ApplicationPost.cpp) (revision 7e503c5459ec77a2816d6c7789da9b206cedbe8a) +++ sources/ApplicationPost.cpp (.../ApplicationPost.cpp) (revision e5577fbd781ded0678882680d5d31f08f56c9c68) @@ -46,6 +46,7 @@ _isRtc = checkRtc (); _isWiFi = checkWiFi (); // is not mandatory and the device can still be used without it. Alarm will be triggered to notify user in Active Alarm List. _isBluetooth = checkBluetooth (); // is not mandatory and the device can still be used without it. Alarm will be triggered to notify user in Active Alarm List. + _isCloudSync = checkCloudSync (); // is not mandatory and the device can still be used without it. Alarm will be triggered to notify user in Active Alarm List. _isEthernet = checkEthernet (); // this is not a Fault and not required the application to stop. No Alarm will be triggered. _isSound = checkSound (); // this is not a Fault and not required the application to stop. No Alarm will be triggered. // WARNING: @@ -60,7 +61,8 @@ isSDCard () && isRtc () && isWiFi () && - isBluetooth () + isBluetooth () && + isCloudSync () ; } else { @@ -78,7 +80,7 @@ */ bool ApplicationPost::checkShaSum() { - bool ok = _content.contains(_postmsg_shasum); + bool ok = _content.contains(_postmsg_shasum + _postmsg_postfix_passed); if (! ok) emit didFail(Gui::GuiAlarmID::ALARM_ID_UI_POST_FAILURE_SHASUM); emit didShaSum(ok); return ok; @@ -91,7 +93,7 @@ */ bool ApplicationPost::checkCANBus() { - bool ok = _content.contains(_postmsg_canbus); + bool ok = _content.contains(_postmsg_canbus + _postmsg_postfix_passed); if (! ok) emit didFail(Gui::GuiAlarmID::ALARM_ID_UI_POST_FAILURE_CANBUS); emit didCANBus(ok); return ok; @@ -118,7 +120,7 @@ */ bool ApplicationPost::checkTouch() { - bool ok = _content.contains(_postmsg_touch); + bool ok = _content.contains(_postmsg_touch + _postmsg_postfix_passed); if (! ok) emit didFail(Gui::GuiAlarmID::ALARM_ID_UI_POST_FAILURE_TOUCH); emit didTouch(ok); return ok; @@ -131,7 +133,7 @@ */ bool ApplicationPost::checkSDCard() { - bool ok = _content.contains(_postmsg_sdcard); + bool ok = _content.contains(_postmsg_sdcard + _postmsg_postfix_passed); if (! ok) emit didFail(Gui::GuiAlarmID::ALARM_ID_UI_POST_FAILURE_SDCARD); emit didSDCard(ok); return ok; @@ -144,7 +146,7 @@ */ bool ApplicationPost::checkRtc() { - bool ok = _content.contains(_postmsg_rtc); + bool ok = _content.contains(_postmsg_rtc + _postmsg_postfix_passed); if (! ok) emit didFail(Gui::GuiAlarmID::ALARM_ID_UI_POST_FAILURE_RTC); emit didRtc(ok); return ok; @@ -157,7 +159,7 @@ */ bool ApplicationPost::checkWiFi() { - bool ok = _content.contains(_postmsg_wifi); + bool ok = _content.contains(_postmsg_wifi + _postmsg_postfix_passed); if (! ok) emit didFail(Gui::GuiAlarmID::ALARM_ID_UI_POST_FAILURE_WIFI); emit didWiFi(ok); return ok; @@ -170,13 +172,26 @@ */ bool ApplicationPost::checkBluetooth() { - bool ok = _content.contains(_postmsg_bluetooth); + bool ok = _content.contains(_postmsg_bluetooth + _postmsg_postfix_passed); if (! ok) emit didFail(Gui::GuiAlarmID::ALARM_ID_UI_POST_FAILURE_BLUETOOTH); emit didBluetooth(ok); return ok; } /*! + * \brief ApplicationPost::checkCloudSync + * \details Checks the CloudSync service is loaded and functional + * \return false if there is an issue. + */ +bool ApplicationPost::checkCloudSync() +{ + bool ok = _content.contains(_postmsg_cloudsync + _postmsg_postfix_passed); + if (! ok) emit didFail(Gui::GuiAlarmID::ALARM_ID_UI_POST_FAILURE_CLOUDSYNC); + emit didCloudSync(ok); + return ok; +} + +/*! * \brief ApplicationPost::checkEthernet * \details Checks the Ethernet driver is loaded and functional. * \return false if there is an issue [Removed from the PRS (always true)].