📄 wap_types.h
字号:
UBYTE dialog_id; /*Identifier of the requested dialog */
U32 message_length; /* Length of the message */
USHORT *Message; /* Message to be shown */
U32 ok_key_length; /* Length of the OK key */
USHORT *Ok_key; /* Contents of the OK key in the confirmation screen */
U32 cancel_key_length; /* Length of the cancel key */
USHORT *Cancel_key; /* Contents of the cancel key in the confirmation screen */
} T_WAP_MMI_CONFIRM_DIALOG_REQ;
/* T_WAP_CONFIRM_DIALOG_CNF
*
* Properties of the confirmation of a confirmation dialog
*/
typedef struct
{
UBYTE object_id;
UBYTE dialog_id; /* Identifier of the requested dialog */
BOOL answer; /* Answer to the confirmation dialog */
} T_MMI_WAP_CONFIRM_DIALOG_CNF;
/* T_WAP_INFO_DIALOG
*
* Properties of an info dialog
*/
typedef struct
{
UBYTE object_id;
UBYTE dialog_id; /* Identifier of the requested dialog */
U32 message_length; /* Length of the message */
USHORT *Message; /* Message to be shown */
} T_WAP_MMI_INFO_DIALOG_REQ;
/* T_WAP_INFO_DIALOG_CNF
*
* Properties of the confirmation of an info dialog
*/
typedef struct
{
UBYTE object_id;
UBYTE dialog_id; /* Identifier of the requested dialog */
} T_MMI_WAP_INFO_DIALOG_CNF;
/* T_WAP_MMI_NEW_CARD_IND
*
* Informs to the MMI about the creation of a new card
*/
typedef struct
{
UBYTE object_id;
U32 title_length;
USHORT *Title;
U32 url_length;
CHAR *Url;
BOOL is_bookmarkable;
U32 history_length;
USHORT **History;
}T_WAP_MMI_NEW_CARD_IND;
/* T_WAP_MMI_NEW_CARD_IND
*
* A request to the MMI to clear the screen view
*/
typedef struct
{
UBYTE object_id;
}T_WAP_MMI_CLEAR_CARD_IND;
/* T_WAP_MMI_DRAW_CARD_IND
*
* Notification to the MMI that a card is about to be drawn
*/
typedef struct
{
UBYTE object_id;
USHORT contentPosX;
USHORT contentWidth;
USHORT contentPosY;
USHORT contentHeight;
} T_WAP_MMI_DRAW_CARD_IND;
/* T_WAP_MMI_SEND_TEXT_IND
*
* Requests the MMI to draw a formatted text in particular coordinates and dimensions
*/
typedef struct
{
UBYTE object_id;
UBYTE type;
U32 text_length;
USHORT *Text;
BOOL invert;
SHORT pX;
SHORT pY;
SHORT pWidth;
SHORT pHeight;
UBYTE format;
U32 formatstring_length;
USHORT *Formatstring;
BOOL selected;
BOOL is_link;
USHORT deltaY;
}
T_WAP_MMI_SEND_TEXT_IND;
/* T_WAP_IMAGE
*
* Information coming from a send image event.
*/
typedef struct
{
UBYTE object_id;
U32 image_length;
UBYTE *Image;
BOOL invert;
SHORT pX;
SHORT pY;
SHORT pWidth;
SHORT pHeight;
BOOL selected;
}
T_WAP_MMI_SEND_IMAGE_IND;
/* T_WAP_MMI_SEND_TABLE_IND
*
* Requests the MMI to draw a table in particular coordinates and dimensions.
* Fieldsets are simply tables with zero columns and rows.
*/
typedef struct
{
UBYTE object_id;
U32 title_length;
USHORT *Title;
SHORT pX;
SHORT pY;
SHORT pWidth;
SHORT pHeight;
U32 cols_length;
SHORT *ColWidth;
U32 rows_length;
SHORT *RowHeight;
UBYTE noOfCells;
}
T_WAP_MMI_SEND_TABLE_IND;
/* T_MMI_WAP_CONNECT_REQ
*
* Sent by WAP to establish the data call.
*/
typedef struct
{
UBYTE object_id;
UBYTE channel;
}
T_WAP_MMI_CONNECT_REQ;
/* T_MMI_WAP_CONNECT_CNF
*
* Sent by MMI when the data call has been connected.
*/
typedef struct
{
UBYTE object_id;
UBYTE channel;
UBYTE success;
}
T_MMI_WAP_CONNECT_CNF;
/* T_MMI_WAP_DISCONNECT_IND
*
* Sent by MMI when the data call has been disconnected.
*/
typedef struct
{
UBYTE object_id;
UBYTE channel;
}
T_MMI_WAP_DISCONNECT_IND;
/* T_MMI_WAP_DISCONNECT_IND
*
* Sent by MMI when the data call has been disconnected.
*/
typedef struct
{
UBYTE object_id;
UBYTE channel;
}
T_WAP_MMI_DISCONNECTED_IND;
#ifdef MMS_WAP_ENABLED
/**********************************
talcon add for mms
**************************************/
/*WAP_MMSSTART_IND_ID */
typedef struct
{
UBYTE dummy;
}
T_MMI_WAP_MMSSTART_IND,
T_WAP_MMI_MMSSTART_IND;
/*WAP_MMSTERMINATE_IND_ID */
typedef struct
{
UBYTE access_type;
}
T_MMI_WAP_MMSTERMINATE_IND;
/*
VOID CLNTc_postContent (const CHAR *url, UINT8 id,
BOOL reload, const CHAR *acceptHeader, const INT16
*acceptCharsetHeader, const CHAR *data, UINT16
dataLen, BOOL moreData, const CHAR *contentType,
UINT8 sendMode, const CHAR *contentDisp, UINT32
totalSize)
*/
typedef struct
{
UBYTE urlID ;
U32 addr_length;
char * addr ;
BOOL reload ;
U32 acceptHeader_length;
char * acceptHeader ;
#if (GWC_VERSION>=417)
U32 acceptCharsetHeader_length;
short * acceptCharsetHeader;
#endif
U32 data_length ;
char * data ;
BOOL moreData ;
U32 contentType_length;
char * contentType;
UBYTE sendMode;
U32 contentDisp_length;
char* contentDisp;
U32 totalSize ;
}
T_MMI_WAP_POSTCONTENT_IND;
typedef struct
{
UBYTE urlID ;
U32 data_length ;
char * data ;
BOOL moreData ;
}
T_MMI_WAP_POSTMORECONTENT_IND;
#define MMS_MESSAGE_SAR_USED 1
#ifdef MMS_MESSAGE_SAR_USED
#define MMS_MESSAGE_GROUP_SIZE 1500
#endif
/*
VOID CLNTa_content (UINT8 id, const CHAR *data,
UINT16 length, BOOL moreData, const CHAR
*contentType, INT16 charSet, UINT32 totalSize,
UINT32 contentLength, INT16 errorNo, const CHAR
*filename)
*/
typedef struct
{
UBYTE urlID ;
U32 data_length ;
char * data ;
BOOL moreData ;
U32 contentType_length;
char * contentType;
#if (GWC_VERSION>=417)
short charSet;
#endif
U32 totalSize ;
#if (GWC_VERSION>=417)
UINT32 contentLength;
#endif
SHORT errorNo;
#if (GWC_VERSION>=417)
U32 filename_length;
char* filename;
#endif
#ifdef MMS_MESSAGE_SAR_USED
U32 data_length2;
char * data2 ;
#endif
} //CLNTa_content
T_WAP_MMI_CONTENT_REQ;
typedef struct
{
UBYTE urlID ;
}
T_WAP_MMI_ACKPOSTCONTENT_REQ, //CLNTa_acknowledgePostContent
T_MMI_WAP_ACKCONTENT_IND, //CLNTc_acknowledgeContent
T_MMI_WAP_CANCELCONTENT_IND; //CLNTc_cancelContent
/*
VOID CLNTc_getContent (const CHAR *url, UINT8 id,
BOOL reload, const CHAR *acceptHeader, const INT16
*acceptCharsetHeader, BOOL methodHead)
*/
typedef struct
{
UBYTE urlID ;
U32 addr_length;
char * addr ;
BOOL reload ;
U32 acceptHeader_length;
char * acceptHeader ;
#if (GWC_VERSION>=417)
U32 acceptCharsetHeader_length;
char* acceptCharsetHeader;
BOOL methodHead;
#endif
} //CLNTc_getContent (const CHAR *url, UINT8 urlID, BOOL reload, const CHAR *acceptHeader)
T_MMI_WAP_GETCONTENT_IND;
#endif
/* WAP_EVENT_TYPE
*
* Id's for the different types of events, so they can be
* passed between the WAP and MMI tasks.
*/
typedef enum
{
WAP_READY_IND_ID,
WAP_START_IND_ID,
WAP_NEW_VIEW_IND_ID,
WAP_TERMINATE_IND_ID,
WAP_CLOSE_VIEW_IND_ID,
WAP_CONFIGURE_IND_ID,
WAP_CONNECTION_CONFIGURE_IND_ID,
WAP_DOWNLOAD_URL_IND_ID,
WAP_BROWSE_CONTROL_IND_ID,
WAP_KEY_SELECTED_IND_ID,
WAP_INPUT_DIALOG_CNF_ID,
WAP_PASSWORD_DIALOG_CNF_ID,
WAP_CONFIRM_DIALOG_CNF_ID,
WAP_INFO_DIALOG_CNF_ID,
WAP_DRAW_CARD_REQ_ID,
WAP_CONNECT_CNF_ID,
WAP_DISCONNECT_IND_ID,
WAP_CACHE_PREPARE_IND_ID,
WAP_CONTROL_IND_ID,
WAP_NEW_KEY_IND_ID,
WAP_INPUT_DIALOG_REQ_ID,
WAP_PASSWORD_DIALOG_REQ_ID,
WAP_CONFIRM_DIALOG_REQ_ID,
WAP_INFO_DIALOG_REQ_ID,
WAP_NEW_CARD_IND_ID,
WAP_DRAW_CARD_IND_ID,
WAP_CLEAR_CARD_IND_ID,
WAP_SEND_TEXT_IND_ID,
WAP_SEND_IMAGE_IND_ID,
WAP_SEND_TABLE_IND_ID,
WAP_CARD_DRAW_COMPLETED_IND_ID,
WAP_CONNECT_REQ_ID,
WAP_DISCONNECTED_IND_ID,
WAP_READY_CNF_ID,
#ifdef MMS_WAP_ENABLED
/***********talcon add for mms***************/
WAP_MMSSTART_IND_ID,
WAP_MMSTERMINATE_IND_ID,
WAP_POSTCONTENT_IND_ID,
WAP_CONTENT_REQ_ID,
WAP_POSTMORECONTENT_IND_ID,
WAP_ACKPOSTCONTENT_REQ_ID,
WAP_GETCONTENT_IND_ID, //CLNTc_getContent
WAP_ACKCONTENT_IND_ID, //CLNTc_acknowledgeContent
WAP_CANCELCONTENT_IND_ID //CLNTc_cancelContent
/*******end talcon add for mms***************/
#endif
} WAP_EVENT_TYPE;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -