#ifndef GENERALSTATUSPAGE_H #define GENERALSTATUSPAGE_H #include #include "defines.h" namespace Ui { class CGeneralStatusPage; } class CGeneralStatusPage : public QWidget { Q_OBJECT public: enum eGeneralStatusPgTxtErrorValue { GEN_STATUS_PG_NO_ERROR_TEXT_VALUE = 0, GEN_STATUS_PG_WARNING_TEXT_VALUE, GEN_STATUS_PG_ERROR_TEXT_VALUE, GEN_STATUS_PG_MAX_TEXT_VALUE }; explicit CGeneralStatusPage(QWidget *parent = 0); ~CGeneralStatusPage(); int SetGeneralMsgText(QStringList Txt); int AddGeneralMsgBoxLineEntry(QString LineTxt); int SetMQTTConnectionStatus(bool Connected); int SetCANConnectionStatus(bool Connected); private: Ui::CGeneralStatusPage *ui; QStringList mGenMsgListBoxTextLines; int AddColoredLineToGenMsgBox(QString Line); public slots: void ClearGenMsgAreaBtnPressed(); }; #endif // GENERALSTATUSPAGE_H