| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #ifndef RVC_QT_MESSAGE_INFO_H__
- #define RVC_QT_MESSAGE_INFO_H__
- #include <QMetaType>
- #include <QString>
- #include <QRvcItemModel.hpp>
- struct TerminalInfo
- {
- QString serialNumber;
- QString site;
- QString version;
- };
- struct BootInfo
- {
- uint8_t bootedNum;
- uint8_t totalBootNum;
- };
- enum MessageType
- {
- TextNormal,
- TextEvent,
- TextWarn,
- TextError,
- TextFatal,
- TextBlock,
- TextNotifyInfo,
- TextNotifyWarn,
- TextNotifyError,
- ModStartupInfo,
- ModBootInfo,
- ModBootError,
- DisplayShow,
- DisplayHide,
- DisplayBlueScreen,
- StageChangeInfo,
- MsgTypeMax
- };
- struct QtMessageInfo
- {
- MessageType type;
- QString content;
- int param1;
- int param2;
- };
- struct QEntityActiveInfo
- {
- QString entityName;
- EntityState entityState;
- int entityDevId;
- int entityPID;
- QString entityVerStr;
- };
- Q_DECLARE_METATYPE(QtMessageInfo)
- Q_DECLARE_METATYPE(QEntityActiveInfo)
- #endif // !RVC_QT_MESSAGE_INFO_H__
|