⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jbrowsermmitypes.h

📁 MTK_MMI的部分源代码,从code中大致了解到MMI的执行流程
💻 H
字号:
/*****************************************************************************
*  Copyright Statement:
*  --------------------
*  This software is protected by Copyright and the information contained
*  herein is confidential. The software may not be copied and the information
*  contained herein may not be used or disclosed except with the written
*  permission of MediaTek Inc. (C) 2005
*
*  BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
*  THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
*  RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
*  AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
*  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
*  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
*  NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
*  SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
*  SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
*  THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
*  NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
*  SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
*  BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
*  LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
*  AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
*  OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
*  MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
*
*  THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
*  WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
*  LAWS PRINCIPLES.  ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
*  RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
*  THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*****************************************************************************/

/*******************************************************************************
 * Filename:
 * ---------
 * JBrowserMMITypes.h
 *
 * Project:
 * --------
 *   MAUI
 *
 * Description:
 * ------------
 *   This file contains all the data structures used for browser secondary MMI implementation.
 *
 * Author:
 * -------
 * -------
 *
 *==============================================================================
 *             HISTORY
 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!! 
 *------------------------------------------------------------------------------
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 *------------------------------------------------------------------------------
 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!! 
 *==============================================================================
 *******************************************************************************/

#ifndef _JBROWSERMMITYPES_H
#define _JBROWSERMMITYPES_H

#include "MMI_features.h"
#if defined (JATAAYU_SUPPORT) && defined (WAP_SUPPORT)
#include "PixtelDataTypes.h"
#include "gui_data_types.h"
#include "custom_wap_config.h"
#include "custom_nvram_editor_data_item.h"

/* Jataayu Module Includes */
#include "jdi_servicehandler.h"
#include "jdi_communicator.h"
#include "jcal.h"
#include "jdi_BrowserDatatype.h"

#define BRW_DCS_ASCII                           0x00
#define BRW_DCS_UCS                             0x01

#define BRW_MAX_BOOKMARKS                       NVRAM_BRW_MAX_BOOKMARKS
#define BRW_BKM_MAX_TITLE_LENGTH                NVRAM_BRW_BKM_MAX_TITLE_LENGTH
#define BRW_BKM_MAX_URL_LENGTH                     NVRAM_BRW_BKM_MAX_URL_LENGTH

#define BRW_MAX_ADDRESS_HISTORY                    NVRAM_BRW_MAX_ADDRESS_HISTORY
#define BRW_ADDRESS_HISTORY_MAX_TITLE_LENGTH       NVRAM_BRW_ADDRESS_HISTORY_MAX_TITLE_LENGTH
#define BRW_ADDRESS_HISTORY_MAX_URL_LENGTH            NVRAM_BRW_ADDRESS_HISTORY_MAX_URL_LENGTH

#define BRW_WAP_PROFILE_HOMEPAGE_URL_LEN           NVRAM_WAP_PROFILE_HOMEPAGE_URL_LEN

/* Maximum number of characters to be shown in case of url */
#define BRW_MAX_VISIBLE_URL_LENGTH        38
#define NUMBER_OF_ITEMS_IN_BROWSER_OPTION 8
#define BRW_SHOW_IMAGES_OPTION            2
#define BRW_SHOW_HISTORY_AS_OPTION        2
#define BRW_SHOW_IMAGES_SELECTION		  2

#define  BRW_TIME_OUT_LEN              3
#define BRW_MAX_TIME_OUT               WAP_CUSTOM_CFG_DEFAULT_BROWSE_TIMEOUT
#define BRW_MAX_PATH_LENGTH      FMGR_MAX_PATH_LEN*ENCODING_LENGTH
#define BRW_MAX_FILENAME_LENGTH  (FMGR_MAX_INPUT_FILE_LEN)*ENCODING_LENGTH

/* Added for authentication */
#define BRW_AUTH_LEN_USERNAME    31
#define BRW_AUTH_LEN_PASSWORD    31

#define BRW_MAX_WSP_RETRIES       4

/* Added for maximum do elemnts on a page */
#define MAX_DO_ELEMENTS          30

/* Browser Screen Error Tone Duration */
#define JBROWSER_POPUP_TIME    UI_POPUP_NOTIFYDURATION_TIME

/* Browser Max Accesskey Value.Its value should always be TOTAL KEYS + 1 */
/* Currently registered Accesskeys are as follows: */
/* 
   (1)  KEY_STAR,   (2)  KEY_0, 
   (3)  KEY_1,      (4)  KEY_2, 
   (5)  KEY_3,      (6)  KEY_4, 
   (7)  KEY_5,      (8)  KEY_6, 
   (9)  KEY_7,      (10) KEY_8, 
   (11) KEY_9,      (12) KEY_POUND
   (13) KEY_SEND (if BROWSER_SENDKEY_AS_ACCESSKEY is defined in ddl.h)
*/
#ifdef BROWSER_SENDKEY_AS_ACCESSKEY
#define MMI_JBROWSER_MAX_ACCESSKEY  14
#else
#define MMI_JBROWSER_MAX_ACCESSKEY  13
#endif /* BROWSER_SENDKEY_AS_ACCESSKEY */

/* Typedefs */
typedef enum
{
    BRW_STATUS_NO,
    BRW_STATUS_YES,
	BRW_STATUS_FROM_ENTER_ADDRESS,
	BRW_ADD_BKM_FROM_USE_URL
} brw_status_enum;

typedef enum
{
    BRW_DATACONN_ACTIVATING,
    BRW_DATACONN_ACTIVATED,
	BRW_DATACONN_DEACTIVATING,
	BRW_DATACONN_DEACTIVATED
} brw_data_conn_state_enum;


typedef enum
{
    BRW_INLINE_TITLE_CAPTION,
    BRW_INLINE_TITLE,
    BRW_INLINE_ADDRESS_CAPTION,
    BRW_INLINE_URL
} brw_inline_item_display;

typedef enum
{
    BRW_SAT_LAUCH_SUCC,
    BRW_SAT_BRWOSER_BUSY,
    BRW_SAT_BEARER_UNAVAILABLE,
    BRW_SAT_PARAM_GATEWAY_ERROR,
    BRW_SAT_PARAM_URL_ERROR,
    BRW_SAT_PROV_DATA_ERROR,
    BRW_SAT_UNKNOWN_ERROR
} brw_sat_lauch_res_enum;

typedef enum
{
    BRW_SAT_USER_TERMINATION,
    BRW_SAT_ERROR_TERMINATION
} brw_sat_browser_termination_mode_enum;

typedef enum
{
    BRW_INLINE_USERNAME_CAPTION,
    BRW_INLINE_USERNAME,
    BRW_INLINE_PASSWORD_CAPTION,
    BRW_INLINE_PASSWORD
} brw_auth_inline_item_display;

typedef enum
{
    BRW_INLINE_TIMEOUT_CAPTION = 0,
    BRW_INLINE_TIMEOUT_EDIT,
    BRW_INLINE_SHOW_IMAGES_CAPTION,
    BRW_INLINE_SHOW_IMAGES_SELECT,
    BRW_INLINE_SHOW_HISTORY_CAPTION,
    BRW_INLINE_SHOW_HISTORY_SELECT,
	BRW_INLINE_IMAGES_SELECTION_CAPTION,
    BRW_INLINE_IMAGES_SELECTION_SELECT
} brw_option_inline_item_display;

/* BROWSER EVENT TYPES */
typedef enum
{
    E_BRW_STARTUP_EVENT = 1,
    E_BRW_START_FETCH_EVENT,
    E_BRW_STOP_FETCH_EVENT,
    E_BRW_ACTION_EVENT,
    E_BRW_KEY_UP_EVENT,
    E_BRW_KEY_DOWN_EVENT,
    E_BRW_KEY_LEFT_EVENT,
    E_BRW_KEY_RIGHT_EVENT,
    E_BRW_REFRESH_EVENT,
    E_BRW_SAT_GOTO_URL_EVENT,
    E_BRW_PARSE_DRM_EVENT,
	E_BRW_DEINIT_EVENT,
	E_BRW_DATACONN_AUTO_DISC_TIMEOUT_EVENT,
	E_BRW_ENDKEY_EVENT,
    E_TOTAL_EVENTS
} BRW_SECONDARY_MMI_EVENTS_ENUM;

/* Page fetch event type */
typedef enum
{
    BRW_START_FETCH_EVENT,
    BRW_ACTION_EVENT
} brw_page_fetch_event;

/* Browser Context Structure */
typedef struct
{
    nvram_brw_bkm_title_struct *bookmark_title_p;
    nvram_brw_bkm_url_struct *bookmark_url_p;
    nvram_brw_hist_title_struct *address_history_title_p;
    nvram_brw_hist_url_struct *address_history_url_p;
    U8 total_bookmark_items;
    U8 total_address_history_items;
    U16 timeout_value;
    brw_status_enum show_images;
    U8 show_history_as_url;
	brw_status_enum image_selection;
    U8 index_highlighted_item;
    MMI_BOOL push_msg_rcvd_flag;
    JC_DO_LIST **DoElementList;
    U16 do_element_count;
    U16 used_do_element_count;
    JC_AUTH_INFO pAuthInfo;
    U8 brw_auth_username[BRW_AUTH_LEN_USERNAME * ENCODING_LENGTH];
    U8 brw_auth_password[BRW_AUTH_LEN_PASSWORD * ENCODING_LENGTH];
    U8 isBrowserReady;
    U8 isBrowserInitInProgress;
    JC_BOOLEAN isConnectionActive;
    JC_BOOLEAN isRenderedFlag;
    JC_BOOLEAN isLayoutInitialized;
    JC_BOOLEAN isSATURL;            /* added to identify if browsing from SAT application */
    JC_BOOLEAN isServiceMsgSetting; /* added to identify whether service message is on or of */
    U8 isDownloading;
    U8 isDownloadSuspended;
    U8 downloadSizeInKB;
    U8 showDownloadAbortedPopup;
    U32 total_content_length;
    U32 downloaded_content_length;
    JDD_FSHANDLE dwnld_fs_handle;
    JDD_FILE dwnld_file_handle;
    S8 dwnld_progress_str[100];
    JC_MIME_INFO dwnld_mime_info;
    U8 page_fetch_event;            /* added to iddentify if page is fetched from E_BRW_START_FETCH_EVENT or E_BRW_ACTION_EVENT */
    U8 page_fetchReqSrc;            /* added to iddentify if page is requested from wap menu(setting as 0) or from other screen (setting as 1) */
    JC_CHAR *prompt_buffer;         /* added by pawan for prompt input */
	COMM_HANDLE hCommHandle;
    U8 launch_brw_ext_app;
    JC_BOOLEAN isDataConnectionDeactivate; /*Added to iddentify if the data connection is deactivated bt the app in case of csd connection*/
	U8 dataConnectionState;				/*Added to iddentify the current state of the data connection in case of csd*/
} brw_context_struct;

/* Browser Page context */
typedef struct
{
    U8 request_id;
    U8 navigation_list_size;    /* store the URL list number */
	U8 brw_ActiveScreenstatus;
	U8 brw_PageFetchStatus;
	U8 brw_PageRefreshDispStatus;
	U8 brw_PageRefreshStatus;
	U8 brw_pageRenderStatus;
	U8 brw_Pre_PageRenderStatus;
	U8 brw_cancel_flag;
	U8 brw_PageStatusCodeStack[3];
	JC_BOOLEAN brw_isRefreshDisplay;
} brw_page_context_struct;

extern U8 g_brw_add_hist_flag;
extern U8 g_brw_enter_add_flag;
extern brw_context_struct g_brw_cntx;
extern U8 brw_current_url[BRW_BKM_MAX_URL_LENGTH * ENCODING_LENGTH];
extern JC_BROWSER_CONTEXT pBrowserCtxt;
extern SERVICE_VALUE *g_brw_rcvd_service_msg_p; /* puneet */
extern BOOL g_BrwCsdCallDisconnect; /*It is being set when csd call get disconnected*/
extern BOOL g_EndKey_pressed; /*Added to procss the end key through internal queue*/

extern brw_status_enum edit_flag;
extern U8 g_brw_bkm_selected_url[(BRW_BKM_MAX_URL_LENGTH) * ENCODING_LENGTH];
extern U8 g_brw_bkm_selected_title[(BRW_BKM_MAX_TITLE_LENGTH) * ENCODING_LENGTH];

extern brw_page_context_struct g_brw_page_cntx;

#ifdef __JBROWSER_DLS_SUPPORT__
/* Download Agent Service context */
typedef struct
{
	S32 session_id;
	U32 seq_num;
	BOOL progress_flag;
	JC_CHAR *p_file_name;	
}brw_dls_context_struct;
extern brw_dls_context_struct g_brw_dls_cntx;
#endif /* __JBROWSER_DLS_SUPPORT__ */

#endif /* defined (JATAAYU_SUPPORT) && defined (WAP_SUPPORT) */ 
#endif /* _JBROWSERMMITYPES_H */ 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -