Index: sources/ApplicationPost.h =================================================================== diff -u -r27cc308ff5113a9386899d3c8f8b29962a8498e1 -re5577fbd781ded0678882680d5d31f08f56c9c68 --- sources/ApplicationPost.h (.../ApplicationPost.h) (revision 27cc308ff5113a9386899d3c8f8b29962a8498e1) +++ sources/ApplicationPost.h (.../ApplicationPost.h) (revision e5577fbd781ded0678882680d5d31f08f56c9c68) @@ -58,38 +58,44 @@ QString _content; // WARNING: these variables has to match with the ones in the run.sh. - const char *_postmsg_canbus = "CANBus passed" ; // POSTMSG_CANBUS="CANBus passed" - const char *_postmsg_sdcard = "SD-CARD passed" ; // POSTMSG_SDCARD="SD-CARD passed" - const char *_postmsg_touch = "Touch passed" ; // POSTMSG_TOUCH="Touch passed" - const char *_postmsg_rtc = "RTC passed" ; // POSTMSG_RTC="RTC passed" - const char *_postmsg_wifi = "WiFi passed" ; // POSTMSG_WIFI="WiFi passed" - const char *_postmsg_bluetooth = "Bluetooth passed" ; // POSTMSG_BLUETOOTH="Bluetooth passed" - const char *_postmsg_shasum = "App shasum passed" ; // POSTMSG_SHASUM="App shasum passed" + const QString _postmsg_postfix_passed = " passed" ; // POSTMSG_POSTFIX_PASSED=" passed" + const QString _postmsg_postfix_failed = " failed" ; // POSTMSG_POSTFIX_FAILED=" failed" - bool _isShaSum = false ; // HIGH : ALARM_ID_UI_POST_FAILURE_SHASUM - bool _isCANBus = false ; // HIGH : ALARM_ID_UI_POST_FAILURE_CANBUS - bool _isDisplay = false ; // HIGH : ALARM_ID_UI_POST_FAILURE_DISPLAY - bool _isTouch = false ; // HIGH : ALARM_ID_UI_POST_FAILURE_TOUCH - bool _isSDCard = false ; // HIGH : ALARM_ID_UI_POST_FAILURE_SDCARD - bool _isRtc = false ; // MEDIUM : ALARM_ID_UI_POST_FAILURE_RTC - bool _isWiFi = false ; // LOW : ALARM_ID_UI_POST_FAILURE_WIFI : this is a fault but will not affect the final UI POST result. will just send AlarmTrigger. - bool _isBluetooth = false ; // LOW : ALARM_ID_UI_POST_FAILURE_BLUETOOTH : this is a fault but will not affect the final UI POST result. will just send AlarmTrigger. - bool _isEthernet = false ; // NONE : ALARM_ID_UI_POST_FAILURE_ETHERNET : this is not a Fault and not required the application to stop. - bool _isSound = false ; // NONE : ALARM_ID_UI_POST_FAILURE_SOUND : this is not a Fault and not required the application to stop. + const QString _postmsg_canbus = "CANBus" ; // POSTMSG_CANBUS="CANBus" + const QString _postmsg_sdcard = "SD-CARD" ; // POSTMSG_SDCARD="SD-CARD" + const QString _postmsg_touch = "Touch" ; // POSTMSG_TOUCH="Touch" + const QString _postmsg_rtc = "RTC" ; // POSTMSG_RTC="RTC" + const QString _postmsg_wifi = "WiFi" ; // POSTMSG_WIFI="WiFi" + const QString _postmsg_bluetooth = "Bluetooth" ; // POSTMSG_BLUETOOTH="Bluetooth" + const QString _postmsg_shasum = "App shasum" ; // POSTMSG_SHASUM="App shasum" + const QString _postmsg_cloudsync = "CloudSync" ; // POSTMSG_CLOUDSYNC="CloudSync" + // tests // Severity + bool _isShaSum = false ; // HIGH: fault: ALARM_ID_UI_POST_FAILURE_SHASUM + bool _isCANBus = false ; // HIGH: fault: ALARM_ID_UI_POST_FAILURE_CANBUS + bool _isDisplay = false ; // HIGH: fault: ALARM_ID_UI_POST_FAILURE_DISPLAY : Not known way to test, other than visual check + bool _isTouch = false ; // HIGH: fault: ALARM_ID_UI_POST_FAILURE_TOUCH + bool _isSDCard = false ; // HIGH: fault: ALARM_ID_UI_POST_FAILURE_SDCARD + bool _isRtc = false ; // HIGH: fault: ALARM_ID_UI_POST_FAILURE_RTC + bool _isWiFi = false ; // HIGH: : ALARM_ID_UI_POST_FAILURE_WIFI + bool _isBluetooth = false ; // HIGH: : ALARM_ID_UI_POST_FAILURE_BLUETOOTH + 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 _isDone = false ; - // tests // Severity - bool checkShaSum (); // HIGH : ALARM_ID_UI_POST_FAILURE_SHASUM - bool checkCANBus (); // HIGH : ALARM_ID_UI_POST_FAILURE_CANBUS - bool checkDisplay (); // HIGH : ALARM_ID_UI_POST_FAILURE_DISPLAY - bool checkTouch (); // HIGH : ALARM_ID_UI_POST_FAILURE_TOUCH - bool checkSDCard (); // HIGH : ALARM_ID_UI_POST_FAILURE_SDCARD - bool checkRtc (); // MEDIUM : ALARM_ID_UI_POST_FAILURE_RTC - bool checkWiFi (); // LOW : ALARM_ID_UI_POST_FAILURE_WIFI : this is a fault but will not affect the final UI POST result. will just send AlarmTrigger. - bool checkBluetooth (); // LOW : ALARM_ID_UI_POST_FAILURE_BLUETOOTH : this is a fault but will not affect the final UI POST result. will just send AlarmTrigger. - bool checkEthernet (); // NONE : ALARM_ID_UI_POST_FAILURE_ETHERNET : this is not a Fault and not required the application to stop. - bool checkSound (); // NONE : ALARM_ID_UI_POST_FAILURE_SOUND : this is not a Fault and not required the application to stop. + bool checkShaSum (); + bool checkCANBus (); + bool checkDisplay (); + bool checkTouch (); + bool checkSDCard (); + bool checkRtc (); + bool checkWiFi (); + bool checkBluetooth (); + bool checkCloudSync (); + bool checkEthernet (); + bool checkSound (); public: bool isShaSum () { return _isShaSum ; } @@ -100,6 +106,7 @@ bool isRtc () { return _isRtc ; } bool isWiFi () { return _isWiFi ; } bool isBluetooth () { return _isBluetooth ; } + bool isCloudSync () { return _isCloudSync ; } bool isEthernet () { return _isEthernet ; } bool isSound () { return _isSound ; } @@ -118,6 +125,7 @@ void didRtc (bool vPass); void didWiFi (bool vPass); void didBluetooth (bool vPass); + void didCloudSync (bool vPass); void didEthernet (bool vPass); void didSound (bool vPass);