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

📄 custom_wap_config.c

📁 最新MTK手机软件源码
💻 C
📖 第 1 页 / 共 4 页
字号:
/*****************************************************************************
*  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) 2001
*
*****************************************************************************/

/*****************************************************************************
 *
 * Filename:
 * ---------
 *   custom_wap_config.c
 *
 * Project:
 * --------
 *   Maui_Software
 *
 * Description:
 * ------------
 *   The file contains WAP/MMS configuration default value. 
 *
 * 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!
 *
 *------------------------------------------------------------------------------
 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!! 
 *==============================================================================
 *******************************************************************************/
#include "kal_release.h"        /* Basic data type */
#include "custom_wap_config.h"
#include "MMI_features.h"

#ifdef JATAAYU_SUPPORT
/********************************* WAP Browser *************************************/
/*
 * This array is used to store those non markup-language content-types.
 * *  For accpeted markup-language content-types will be automatically inserted by your WAP feature, WAP1.2.1 or WAP2.0
 * *  For WAP1.2.1, "application/vnd.wap.wmlc", "application/vnd.wap.wmlscriptc" and "text/vnd.wap.wml"
 * *  For WAP2.0, "text/html", "application/xhtml+xml; profile=http://www.wapforum.org/xhtml" and "application/vnd.wap.xhtml+xml"
 */
static const char *const g_BrowserAcceptContentType[] = 
{
    "image/vnd.wap.wbmp",
    "image/gif",
    "image/bmp",
    "audio/imelody",
    "audio/midi",
    "audio/wav",
    "application/vnd.wap.wtls-ca-certificate",
    "application/x-x509-ca-cert",
    "application/vnd.wap.hashed-certificate",
    "application/vnd.wap.signed-certificate",
    "text/css",
    "*/*",
    NULL
};

static const char *const g_BrowserAcceptCharset[] = 
{
    "utf-8",
    "iso-8859-1",
	"us-ascii",
	"iso-10646-ucs-2",
    NULL
};

static const char *const g_BrowserLanguageType[] = 
{
    "English",
    NULL
};

static const char *const g_MMSAcceptContentType[] = 
{
    "application/vnd.wap.mms-message",
    "application/smil",
    "application/vnd.wap.multipart.related",
    "application/vnd.wap.multipart.mixed",
#if defined(JPG_DECODE)
    "image/jpeg",    
#endif    
    "image/gif",
    "image/bmp",
    "image/vnd.wap.wbmp",
#if defined(USE_HW_PNG_DECODER_V1) || defined(USE_SW_PNG_DECODER)    
    "image/png",
#endif    
    "audio/midi",
    "audio/x-midi",
    "audio/sp-midi",
    "audio/x-wav",
    "audio/imelody",
    "text/x-imelody",
    "audio/wav",
    "audio/amr",
#if defined(AMRWB_DECODE)    
    "audio/amr-wb",
#endif    
#if defined(AAC_DECODE)
    "audio/aac",
#endif
#if defined(WMA_DECODE)
    "audio/wma",
#endif    
#if defined(MP4_CODEC) && defined(AAC_DECODE)    
    "audio/m4a",
#endif    
#if defined(DAF_DECODE)    
    "audio/mp3",
    "audio/mpeg",
#endif
    "audio/vnd.qcelp",  
#if defined(__DRM_SUPPORT__)    
    "application/vnd.oma.drm.message",
    "application/vnd.oma.drm.content",
    "application/vnd.oma.drm.rights+xml",
    "application/vnd.oma.drm.rights+wbxml",
#endif    
    "text/plain",
    "application/vnd.wap.hashed-certificate",
    "application/vnd.wap.signed-certificate",
    "application/vnd.wap.wtls_ca_certificate",
    "application/x_x509_ca_cert",
    "application/vnd.wap.xhtml+xml",
    "application/vnd.wap.wmlc",
    "application/vnd.wap.wmlscriptc",
    "text/vnd.wap.wml",
    "text/html",
    "text/css",
    "text/vnd.wap.connectivity-xml",
    "application/x-x509-user-cert",
    "application/vnd.wap.connectivity-wbxml",    
#if defined(MP4_CODEC)
    "video/3gp",
    "video/3gpp",
    "video/3gpp2",    
    "video/mp4",
    "video/mpeg",
#endif
#if defined(MJPG_SUPPORT)
    "video/x-msvideo",
    "video/avi",
#endif
#if defined(__J2ME__)
    "application/java-vm",
    "application/java-archive",
    "text/vnd.sun.j2me.app-descriptor",
#endif    
#if defined(__MMI_VCALENDAR__)
    "text/x-vCalendar",
#endif
#if defined(__MMI_VCARD__)
    "text/x-vCard",
#endif    
    NULL
};

static const char *const g_MMSAcceptCharset[] = 
{
    "utf-8",
    "iso-8859-1",
    "us-ascii",
    "iso-10646-ucs-2",
    NULL
};

static const char *const g_MMSLanguageType[] = 
{
    NULL
};


/*****************************************************************************
 * FUNCTION
 *  wap_custom_get_browser_max_cache_size
 * DESCRIPTION
 *  
 * PARAMETERS
 *  void
 * RETURNS
 *  
 *****************************************************************************/
kal_uint32 wap_custom_get_browser_max_cache_size(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    return (kal_uint32) WAP_CUSTOM_CFG_MAX_CACHE_SIZE;
}


/*****************************************************************************
 * FUNCTION
 *  wap_custom_get_browser_max_cookies_size
 * DESCRIPTION
 *  
 * PARAMETERS
 *  void
 * RETURNS
 *  
 *****************************************************************************/
kal_uint32 wap_custom_get_browser_max_cookies_size(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    return (kal_uint32) WAP_CUSTOM_CFG_MAX_COOKIES_SIZE;
}


/*****************************************************************************
 * FUNCTION
 *  wap_custom_get_browser_max_push_msg_num
 * DESCRIPTION
 *  
 * PARAMETERS
 *  void
 * RETURNS
 *  
 *****************************************************************************/
kal_uint16 wap_custom_get_browser_max_push_msg_num(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    return (kal_uint16) WAP_CUSTOM_CFG_PUSH_MAX_NO_OF_MSG;
}


/*****************************************************************************
 * FUNCTION
 *  wap_custom_get_browser_ua_header
 * DESCRIPTION
 *  
 * PARAMETERS
 *  void
 * RETURNS
 *  
 *****************************************************************************/
const kal_uint8 *wap_custom_get_browser_ua_header(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    return (const kal_uint8*)WAP_CUSTOM_CFG_DEFAULT_UA_HEADER;
}


/*****************************************************************************
 * FUNCTION
 *  wap_custom_get_browser_ua_prof_url
 * DESCRIPTION
 *  
 * PARAMETERS
 *  void
 * RETURNS
 *  
 *****************************************************************************/
const kal_uint8 *wap_custom_get_browser_ua_prof_url(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    return (const kal_uint8*)WAP_CUSTOM_CFG_DEFAULT_UA_PROF_URL;
}


/*****************************************************************************
 * FUNCTION
 *  wap_custom_get_browser_accept_charset
 * DESCRIPTION
 *  
 * PARAMETERS
 *  index       [IN]        
 * RETURNS
 *  
 *****************************************************************************/
const kal_uint8 *wap_custom_get_browser_accept_charset(kal_uint32 index)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    kal_uint32 i = 0;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    while (g_BrowserAcceptCharset[i] != NULL)
    {
        if (i == index)
        {
            return (const kal_uint8*)g_BrowserAcceptCharset[i];
        }
        i++;
    }
    return NULL;

}


/*****************************************************************************
 * FUNCTION
 *  wap_custom_get_browser_accept_content_type
 * DESCRIPTION
 *  
 * PARAMETERS
 *  index       [IN]        
 * RETURNS
 *  
 *****************************************************************************/
const kal_uint8 *wap_custom_get_browser_accept_content_type(kal_uint32 index)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    kal_uint32 i = 0;

⌨️ 快捷键说明

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