📄 atbwapaui.h
字号:
/*******************************************************************************
CONDAT (UK)
********************************************************************************
This software product is the property of Condat (UK) Ltd and may not be
disclosed to any third party without the express permission of the owner.
********************************************************************************
$Project name:
$Project code:
$Module:
$File: ATBWapAUI.h
$Revision:
$Author: Condat(UK)
$Date:
********************************************************************************
Description:
Contains definitions and prototypes for the ATB.
********************************************************************************
$History: ATBWapAUI.h
14/05/2003 - SPR#1983 - SH - Updated to latest from 1.6.3 version.
$End
*******************************************************************************/
#include "MMiResources.h"
/* FUNCTIONS FOR TRACING */
#if defined(TRACE_ATBWAPAUI) || defined(TRACE_ATBWAPACI)
void ATB_trace_string(char *String, USHORT length);
void ATB_trace_ushort_string(USHORT *String, USHORT length);
#endif
/* All display constants stored here, except checkbox sizes
* which are in wap_types.h */
#define WAP_CHAR_HEIGHT (LINE_HEIGHT) /* Height of a line of text */
#define WAP_CHAR_WIDTH (CHAR_WIDTH) /* Width of a character */
#define WAP_TOTAL_WIDTH SCREEN_SIZE_X /* Total width of screen */
#define WAP_TOTAL_HEIGHT SCREEN_SIZE_Y /* Total height of screen */
#define WAP_LEFT_BORDER 0 /* Border at left of screen */
#define WAP_RIGHT_BORDER 4 /* Border at right of screen */
#define WAP_TOP_BORDER (Mmi_layout_TitleHeight()) /* Border at top of screen (title) */
#define WAP_BOTTOM_BORDER (Mmi_layout_softkeyHeight()) /* Border at bottom of screen (softkeys) */
#define WAP_SCREEN_RIGHT (WAP_TOTAL_WIDTH - WAP_RIGHT_BORDER)
#define WAP_SCREEN_BOTTOM (WAP_TOTAL_HEIGHT - WAP_BOTTOM_BORDER)
#define WAP_SCREEN_WIDTH (WAP_TOTAL_WIDTH - WAP_LEFT_BORDER - WAP_RIGHT_BORDER) /* No of pixels available to the wap browser in width... */
#define WAP_SCREEN_HEIGHT (WAP_TOTAL_HEIGHT - WAP_TOP_BORDER - WAP_BOTTOM_BORDER) /* and height (not including title & softkeys) */
#define WAP_PAGE_SCROLL (WAP_SCREEN_HEIGHT-WAP_CHAR_HEIGHT) /* Long scrolling size */
#define WAP_TEXT_LOWEST (WAP_SCREEN_HEIGHT-WAP_CHAR_HEIGHT) /* Lowest point we can draw text */
#define WAP_VSCROLLBAR_WIDTH 3 /* Total width of the vertical scrollbar */
#define WAP_HSCROLLBAR_WIDTH 4 /* Total width of the horizontal scrollbar */
#define WAP_SOFTKEY_SPACING 2 /* Minimum spacing between softkey texts */
#define WAP_SOFTKEY_MIN_LENGTH 5 /* Minimum length for softkey text (including two dots for truncated strings) */
void ATB_wap_start(T_MMI_WAP_START_IND *parameter);
T_WAP_VIEW* ATB_wap_new_view(T_MMI_WAP_NEW_VIEW_IND *parameter, void* UIdata);
T_WAP_VIEW* ATB_wap_get_view(UBYTE object_id);
T_WAP_RES ATB_wap_terminate();
T_WAP_RES ATB_wap_config_int(T_WAP_VIEW *View, USHORT param, U32 value);
T_WAP_RES ATB_wap_config_str(T_WAP_VIEW *View, USHORT param, char *string, U32 length);
T_WAP_RES ATB_wap_conn_config_int(T_WAP_VIEW *View, USHORT param, U32 value);
T_WAP_RES ATB_wap_conn_config_str(T_WAP_VIEW *View, USHORT param, char *string, U32 length);
T_WAP_RES ATB_wap_destroy();
void *ATB_wap_UIdata();
T_WAP_RES ATB_wap_download_url(T_WAP_VIEW *View, char *URL, BOOL reload);
T_WAP_RES ATB_wap_stop_download(T_WAP_VIEW *View);
T_WAP_RES ATB_wap_card_refresh(T_WAP_VIEW *View);
T_WAP_RES ATB_wap_card_display(T_WAP_VIEW *View);
T_WAP_RES ATB_wap_card_go_back(T_WAP_VIEW *View);
T_WAP_RES ATB_wap_card_key_event(T_WAP_VIEW *View, WAP_CONTROL_TYPES keyType);
T_WAP_RES ATB_wap_key_selected(T_WAP_VIEW *View, USHORT keyId);
T_WAP_RES ATB_wap_card_scroll(T_WAP_VIEW *View, SHORT scrollPos);
T_WAP_RES ATB_wap_input_dialog_closed(T_MMI_WAP_INPUT_DIALOG_CNF *DialogCnf);
T_WAP_RES ATB_wap_password_dialog_closed(T_MMI_WAP_PASSWORD_DIALOG_CNF *DialogCnf);
T_WAP_RES ATB_wap_confirm_dialog_closed(T_MMI_WAP_CONFIRM_DIALOG_CNF *DialogCnf);
T_WAP_RES ATB_wap_info_dialog_closed(T_MMI_WAP_INFO_DIALOG_CNF *DialogCnf);
T_WAP_RES ATB_wap_update_display_cnf();
T_WAP_RES ATB_wap_options_menu_select(T_WAP_VIEW *View);
T_WAP_ELEMENT * ATB_wap_buffer_add_element(T_WAP_VIEW *View, WAP_ELEMENT_TYPE type);
void ATB_wap_buffer_display(T_WAP_VIEW *View);
void ATB_wap_buffer_clear(T_WAP_VIEW *View);
UBYTE ATB_wap_buffer_identify_element(T_WAP_VIEW *View);
T_WAP_PROFILE* ATB_wap_profile_create();
void ATB_wap_profile_destroy(T_WAP_PROFILE *Profile);
T_WAP_RES ATB_wap_profile_read(T_WAP_VIEW *View, UBYTE ProfileId);
T_WAP_RES ATB_wap_profile_names_read(T_WAP_VIEW *View);
T_WAP_RES ATB_wap_profile_save(T_WAP_VIEW *View);
T_WAP_RES ATB_wap_profile_default_create();
void ATB_wap_profile_send(T_WAP_VIEW *View);
void ATB_wap_secondary_IP(T_WAP_VIEW *View);
T_WAP_LIST * ATB_wap_entry_list_create(WAP_LIST_TYPE type, UBYTE max_entries, UBYTE entry_size, BOOL unicode);
T_WAP_RES ATB_wap_entry_list_destroy(T_WAP_LIST *EntryList);
T_WAP_RES ATB_wap_entry_add(T_WAP_LIST *EntryList, char *Entry);
T_WAP_RES ATB_wap_entry_change(T_WAP_LIST *EntryList, char *Entry, UBYTE entryIndex);
T_WAP_RES ATB_wap_entry_insert(T_WAP_LIST *EntryList, char *Entry, UBYTE entryIndex);
T_WAP_RES ATB_wap_entry_remove(T_WAP_LIST *EntryList, UBYTE entryIndex);
T_WAP_RES ATB_wap_entry_remove_all(T_WAP_LIST *EntryList);
T_WAP_RES ATB_wap_renumber_history(T_WAP_LIST *History);
void ATB_wap_status_change(T_WAP_VIEW *View, USHORT status);
BOOL ATB_wap_status_get(T_WAP_VIEW *View, USHORT status);
USHORT ATB_uc_text_copy(USHORT *dst, USHORT *src, USHORT destlen);
USHORT ATB_uc_text_width(USHORT *str, USHORT length);
USHORT ATB_uc_text_crop(USHORT *str, USHORT length, SHORT width);
USHORT* ATB_uc_text_convert (USHORT *str, USHORT strlen);
USHORT ATB_uc_to_char(char *dst, USHORT *src, USHORT srclen);
USHORT ATB_char_to_uc (USHORT *dst, char *src);
void ATB_conv_str_to_IP(const char* str, USHORT len, ULONG* ip);
void ATB_data_call_connected(void);
void ATB_wap_cache_prepare(void);
void ATB_wap_start_done(void);
void ATB_wap_new_view_done(void);
void ATB_wap_terminate_done(void);
void ATB_wap_close_view_done(void);
void ATB_wap_cache_prepare_done(void);
void ATB_wap_disconnect(T_WAP_VIEW *View);
/* INTERFACE WITH AUI */
T_WAP_RES AUI_wap_input_dialog_open(T_WAP_MMI_INPUT_DIALOG_REQ *Dialog);
T_WAP_RES AUI_wap_password_dialog_open(T_WAP_MMI_PASSWORD_DIALOG_REQ *Dialog);
T_WAP_RES AUI_wap_confirm_dialog_open(T_WAP_MMI_CONFIRM_DIALOG_REQ *Dialog);
T_WAP_RES AUI_wap_info_dialog_open(T_WAP_MMI_INFO_DIALOG_REQ *Dialog);
UBYTE* AUI_wap_memory_alloc(USHORT size);
void AUI_wap_memory_free(UBYTE* address, USHORT size);
void AUI_wap_card_show_req(T_WAP_VIEW *View);
void AUI_wap_status_notify(T_WAP_VIEW *View, USHORT status);
void AUI_wap_change_soft_key(T_WAP_VIEW *View, USHORT *Label, USHORT length, USHORT keyId);
USHORT AUI_wap_stringID(USHORT *dest, USHORT destlen, USHORT stringID);
void AUI_wap_start_done(void);
void AUI_wap_new_view_done(void);
void AUI_wap_terminate_done(void);
void AUI_wap_close_view_done(void);
void AUI_wap_cache_prepare_done(void);
void AUI_wap_end_call(SHORT cId);
void AUI_error_dialog(T_WAP_VIEW *View, SHORT errorCode);
/*******************************************************************************
writeerrorFFS/writeflagFFS
These functions are provided for debugging purposes
*******************************************************************************/
void writeerrorFFS(SHORT error);
void writeflagFFS(UBYTE flag);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -