12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- #ifndef __UI_H_
- #define __UI_H_
- #include "pt.h"
- enum {
- UIS_NULL=0,
- UIS_STANDBY, //主界面
- UIS_MENU_MAIN, //主菜单
- UIS_MENU_USER_SEL, //成员选择
- UIS_MENU_GROUP_SEL, //群组选择
- UIS_MAIL_BOX, //信箱查阅
- UIS_MENU_SYS_SET, //系统设置
- UIS_MENU_INFO, //终端信息
- // UIS_CALL_PHONE,
- // UIS_CALL_PHONE_OPTION,
- // UIS_CALL_PHONE_INPUT,
- // UIS_CALL_PHONE_MODIFY,//此界面处理号码
- // UIS_CALL_PHONE_DELETE,
- UIS_MESSAGE_OPTION,
- UIS_MESSAGE_READ,
- UIS_MESSAGE_DELE,
- UIS_MESSAGE_FORMAT,
- UIS_CALL_TO_PHONE,
- UIS_SET_APN,
- UIS_APN_DETAIL,
- UIS_SET_GPS,
- UIS_SET_LCD,
- UIS_SET_NET,
- UIS_SET_SERVER,
- UIS_SET_SERVER_PASS,
- UIS_SET_TIME,
- UIS_SET_CODETYPE,
- UIS_MENU_APN_DETAIL,
- UIS_SET_KEYSound,
- UIS_SET_SOUNDMODE,
- UIS_SET_PWRMODE,
- UIS_SET_POC_FOTA,
- UIS_UP_APP_PENDING,
- UIS_SET_USBTTL,
- UIS_SET_LCDBRIGHT,
- UIS_SET_SIMCARD,
- UIS_SET_MICLV,
- UIS_POWEROFF_WAIT,
- };
- typedef struct SUT_UI_STATUS
- {
- unsigned char Status;//当前状态
- unsigned char LastStatus;//上一次状态 当前状态发生变化后,存储了上一次的状态值
- unsigned char NextStatus;//下一个状态 当前状态不等与下一个状态,则发生转换
- unsigned char ItemRefresh; //刷新状态栏
- }SUT_UI_STATUS;
- typedef struct UI_STACK{
- char sta[4];
- char OK_back;//确认返回
- char top;
- unsigned char FastUiChange;//快捷方式进入
- }UI_STACK;
- extern UI_STACK UI_Stack;
- extern SUT_UI_STATUS sutUIstatus;
- //extern unsigned char Nonloop;
- extern char showPIP[40];
- extern char showGIP[40];
- extern signed char netshowvalue;
- extern signed char tempnetshowvalue;
- void UI_Init(void);
- PT_THREAD (ptUITask(struct pt *pt));
- void UISetNextStatus(unsigned char status);
- void UI_Key();
- void speciallShow(char type);
- void Init_stack(struct UI_STACK* s);
- int PushUiStack(struct UI_STACK *s,int data);
- int PullUiStack(struct UI_STACK *s);
- void MessageFormatShow(int Update);
- void SetAPNShow(int Update);
- void SetApnDetailShow(int Update);
- void SetGPSShow(int Update);
- void SetLCDShow(int Update);
- void UIShowPOCSerPass(int Update);
- void UIShowPOCSer(int Update);
- void SetCodeTypeShow(int Update);
- void SetSoundModeShow(int Update);
- void SetPowerModeShow(int Update);
- void SetUpIntercomVerShow(int Update);
- void ShowSingle(int CSQ);
- #endif
|