Index: sources/ApplicationPost.h =================================================================== diff -u -r3f555c49ddd2c983f469709e3c001d0e76159248 -re4a0e2fc4c7ae0cbce0d670772276bf7f5ff3845 --- sources/ApplicationPost.h (.../ApplicationPost.h) (revision 3f555c49ddd2c983f469709e3c001d0e76159248) +++ sources/ApplicationPost.h (.../ApplicationPost.h) (revision e4a0e2fc4c7ae0cbce0d670772276bf7f5ff3845) @@ -25,28 +25,68 @@ Q_OBJECT QString _content; - const char *_postmsg_canbus ="CANBus passed" ; - const char *_postmsg_sdcard ="SD-CARD passed" ; - const char *_postmsg_touch ="Touch passed" ; - const char *_postmsg_rtc ="RTC passed" ; + const char *_postmsg_canbus = "CANBus passed" ; + const char *_postmsg_sdcard = "SD-CARD passed" ; + const char *_postmsg_touch = "Touch passed" ; + const char *_postmsg_rtc = "RTC passed" ; + const char *_postmsg_wifi = "WiFi passed" ; + const char *_postmsg_bluetooth = "Bluetooth passed"; + bool _isFileSystem = false ; // HIGH : ALARM_ID_UI_POST_FAILURE_FILESYSTEM + 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 + bool _isBluetooth = false ; // LOW : ALARM_ID_UI_POST_FAILURE_BLUETOOTH + 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. + + bool _isDone = false ; + // tests // Severity - bool checkFileSystem (); // HIGH : ALARM_ID_UI_POST_FAILURE_FILESYSTEM - 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 RTC (); // MEDIUM : ALARM_ID_UI_POST_FAILURE_RTC - bool checkWiFi (); // LOW : ALARM_ID_UI_POST_FAILURE_WIFI - bool checkBluetooth (); // LOW : ALARM_ID_UI_POST_FAILURE_BLUETOOTH - 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 checkFileSystem (); // HIGH : ALARM_ID_UI_POST_FAILURE_FILESYSTEM + 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 + bool checkBluetooth (); // LOW : ALARM_ID_UI_POST_FAILURE_BLUETOOTH + 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. public: + bool isFileSystem () { return _isFileSystem ; } + bool isCANBus () { return _isCANBus ; } + bool isDisplay () { return _isDisplay ; } + bool isTouch () { return _isTouch ; } + bool isSDCard () { return _isSDCard ; } + bool isRtc () { return _isRtc ; } + bool isWiFi () { return _isWiFi ; } + bool isBluetooth () { return _isBluetooth ; } + bool isEthernet () { return _isEthernet ; } + bool isSound () { return _isSound ; } + + bool isDone () { return _isDone ; } + +public: explicit ApplicationPost(QObject *parent = nullptr); void start(); signals: - void didPOSTFail(Gui::GuiAlarmID vAlarmID); - void didPOSTDone(bool vResult ); + void didFileSystem (); + void didCANBus (); + void didDisplay (); + void didTouch (); + void didSDCard (); + void didRtc (); + void didWiFi (); + void didBluetooth (); + void didEthernet (); + void didSound (); + + void didFail(Gui::GuiAlarmID vAlarmID); + void didDone(bool vPass); };