QtMessageInfo.h 981 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #ifndef RVC_QT_MESSAGE_INFO_H__
  2. #define RVC_QT_MESSAGE_INFO_H__
  3. #include <QMetaType>
  4. #include <QString>
  5. #include <QRvcItemModel.hpp>
  6. struct TerminalInfo
  7. {
  8. QString serialNumber;
  9. QString site;
  10. QString version;
  11. };
  12. struct BootInfo
  13. {
  14. uint8_t bootedNum;
  15. uint8_t totalBootNum;
  16. };
  17. enum MessageType
  18. {
  19. TextNormal,
  20. TextEvent,
  21. TextWarn,
  22. TextError,
  23. TextFatal,
  24. TextBlock,
  25. TextNotifyInfo,
  26. TextNotifyWarn,
  27. TextNotifyError,
  28. ModStartupInfo,
  29. ModBootInfo,
  30. ModBootError,
  31. DisplayShow,
  32. DisplayHide,
  33. DisplayBlueScreen,
  34. StageChangeInfo,
  35. MsgTypeMax
  36. };
  37. struct QtMessageInfo
  38. {
  39. MessageType type;
  40. QString content;
  41. int param1;
  42. int param2;
  43. };
  44. struct QEntityActiveInfo
  45. {
  46. QString entityName;
  47. EntityState entityState;
  48. int entityDevId;
  49. int entityPID;
  50. QString entityVerStr;
  51. };
  52. Q_DECLARE_METATYPE(QtMessageInfo)
  53. Q_DECLARE_METATYPE(QEntityActiveInfo)
  54. #endif // !RVC_QT_MESSAGE_INFO_H__