/******************************************************************************** * File Name: UI.h * Function Describe: UI.c declare module * Relate Module: * Explain: 用户界面,注意,为避免操作系统中多任务调用而导致资源访问冲突,只允许在同一个任务中调用。目前设定在MainTask任务中调用! * Writer: ShiLiangWen * Date: 2016.1.28 *******************************************************************************/ #ifndef __UI_H #define __UI_H //===========================begin============================================ 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_TIME, UIS_UP_APPRICATION_VER, UIS_UP_APP_PENDING, UIS_UP_INTERCOM_VER, UIS_MENU_APN_DETAIL, UIS_UPDATA_SHOW, UIS_SET_LANGUAGE, UIS_Voice_Record, UIS_SET_KEYSound, UIS_START_INFOSET, //FastInterfaceMode UIS_FASTINTERFACE, UIS_AWMODESET, UIS_LOW_CONSUMPTION,//consumption UIS_FACTORY_MENU, UIS_FACTORY_LCD, UIS_WAIT_ONECALL, UIS_FACTORY_KEY, UIS_FACTORY_LED, UIS_FACTORY_VBAT, UIS_SET_PTTTONE, UIS_SET_ADB, UIS_SET_BOOT, UIS_POWEROFF, UIS_BOOTUPATE_SHOW, }; typedef struct SUT_UI_STATUS { unsigned char Status;//当前状态 unsigned char LastStatus;//上一次状态 当前状态发生变化后,存储了上一次的状态值 unsigned char NextStatus;//下一个状态 当前状态不等与下一个状态,则发生转换 unsigned char LastHandle; unsigned char LastPage; unsigned char ShortCut; //快捷方式进入 }SUT_UI_STATUS; typedef struct UI_STACK{ int sta[4]; int top; }UI_STACK; extern UI_STACK UI_Stack; extern SUT_UI_STATUS sutUIstatus; extern unsigned char lastOption; extern signed char ChangeIng; extern char ChangeIngCt; void UI_Init(void); void UI_Loop(void); void UI_Key(void); void ShowBootAnimation(void);//显示开机动画 void ShowMessageBox(char *msg); void UISetNextStatus(unsigned char status); void ShowNumBox(unsigned short msg); void ShowButton(u16 x,u16 y,const char *str);//显示一个按钮 void ShowButton2(u16 x,u16 y,const char *str); void ReFlashItem(void); void Show_Net(unsigned int s_netshowvalue); void ReFlashItem2(void); void UIShowMainInterface(int StatusUpdate); void Init_stack(struct UI_STACK* s); int PushUiStack(struct UI_STACK *s,int data); int PullUiStack(struct UI_STACK *s); void ShowCallUserName(u16 x,u16 y); //===========================end============================================== #endif /******************************************************************************/