UI.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. #ifndef __UI_H_
  2. #define __UI_H_
  3. #include "pt.h"
  4. enum {
  5. UIS_NULL=0,
  6. UIS_STANDBY, //主界面
  7. UIS_MENU_MAIN, //主菜单
  8. UIS_MENU_USER_SEL, //成员选择
  9. UIS_MENU_GROUP_SEL, //群组选择
  10. UIS_MAIL_BOX, //信箱查阅
  11. UIS_MENU_SYS_SET, //系统设置
  12. UIS_MENU_INFO, //终端信息
  13. // UIS_CALL_PHONE,
  14. // UIS_CALL_PHONE_OPTION,
  15. // UIS_CALL_PHONE_INPUT,
  16. // UIS_CALL_PHONE_MODIFY,//此界面处理号码
  17. // UIS_CALL_PHONE_DELETE,
  18. UIS_MESSAGE_OPTION,
  19. UIS_MESSAGE_READ,
  20. UIS_MESSAGE_DELE,
  21. UIS_MESSAGE_FORMAT,
  22. UIS_CALL_TO_PHONE,
  23. UIS_SET_APN,
  24. UIS_APN_DETAIL,
  25. UIS_SET_GPS,
  26. UIS_SET_LCD,
  27. UIS_SET_NET,
  28. UIS_SET_SERVER,
  29. UIS_SET_SERVER_PASS,
  30. UIS_SET_TIME,
  31. UIS_SET_CODETYPE,
  32. UIS_MENU_APN_DETAIL,
  33. UIS_SET_KEYSound,
  34. UIS_SET_SOUNDMODE,
  35. UIS_SET_PWRMODE,
  36. UIS_SET_POC_FOTA,
  37. UIS_UP_APP_PENDING,
  38. UIS_SET_USBTTL,
  39. UIS_SET_LCDBRIGHT,
  40. UIS_SET_SIMCARD,
  41. UIS_SET_MICLV,
  42. UIS_POWEROFF_WAIT,
  43. };
  44. typedef struct SUT_UI_STATUS
  45. {
  46. unsigned char Status;//当前状态
  47. unsigned char LastStatus;//上一次状态 当前状态发生变化后,存储了上一次的状态值
  48. unsigned char NextStatus;//下一个状态 当前状态不等与下一个状态,则发生转换
  49. unsigned char ItemRefresh; //刷新状态栏
  50. }SUT_UI_STATUS;
  51. typedef struct UI_STACK{
  52. char sta[4];
  53. char OK_back;//确认返回
  54. char top;
  55. unsigned char FastUiChange;//快捷方式进入
  56. }UI_STACK;
  57. extern UI_STACK UI_Stack;
  58. extern SUT_UI_STATUS sutUIstatus;
  59. //extern unsigned char Nonloop;
  60. extern char showPIP[40];
  61. extern char showGIP[40];
  62. extern signed char netshowvalue;
  63. extern signed char tempnetshowvalue;
  64. void UI_Init(void);
  65. PT_THREAD (ptUITask(struct pt *pt));
  66. void UISetNextStatus(unsigned char status);
  67. void UI_Key();
  68. void speciallShow(char type);
  69. void Init_stack(struct UI_STACK* s);
  70. int PushUiStack(struct UI_STACK *s,int data);
  71. int PullUiStack(struct UI_STACK *s);
  72. void MessageFormatShow(int Update);
  73. void SetAPNShow(int Update);
  74. void SetApnDetailShow(int Update);
  75. void SetGPSShow(int Update);
  76. void SetLCDShow(int Update);
  77. void UIShowPOCSerPass(int Update);
  78. void UIShowPOCSer(int Update);
  79. void SetCodeTypeShow(int Update);
  80. void SetSoundModeShow(int Update);
  81. void SetPowerModeShow(int Update);
  82. void SetUpIntercomVerShow(int Update);
  83. void ShowSingle(int CSQ);
  84. #endif