You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
864 B

9 months ago
8 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
  1. #pragma once
  2. #include <stdint.h>
  3. #include <functional>
  4. #include "uicontroler/tjc/tjc_base_type.h"
  5. typedef enum {
  6. KAE_callOnAppEventBusLoop,
  7. kAE_RunModeChangeEvent, // ����ģʽ�ı�
  8. kAppEvent_StateDisplayInfo,
  9. kAppEvent_AcidChCfgChangeEvent,
  10. // UI_EVENT
  11. KAE_UIEvent,
  12. kAE_LoginEvent,
  13. kAE_unLoginEvent,
  14. KAE_PageChangeEvent,
  15. kAE_AcidStatChangeEvent, // ͳ�����ݱ仯�¼�
  16. kAE_RemoterConnectedEvent, // ң�������ӳɹ�
  17. kAE_RemoterDisConnectedEvent, // ң�����Ͽ�����
  18. } AppEventType_t;
  19. /**
  20. *
  21. * @ע
  22. * ׶󣬷ջ
  23. */
  24. // typedef struct {
  25. // } AppEvent;
  26. class AppEvent {
  27. public:
  28. AppEventType_t type;
  29. union {
  30. uint32_t placeholder;
  31. char bleName[20];
  32. char stateDisplayInfo[30];
  33. UIEvent uiEvent;
  34. int32_t pageChangeTo;
  35. } d;
  36. std::function<void()> onfnc;
  37. };