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

📄 custom_wap_config.c

📁 最新MTK手机软件源码
💻 C
📖 第 1 页 / 共 4 页
字号:
    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    while (g_BrowserAcceptContentType[i] != NULL)
    {
        if (i == index)
        {
            return (const kal_uint8*)g_BrowserAcceptContentType[i];
        }
        i++;
    }
    return NULL;
}


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

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

/********************************* MMS Client *************************************/


/*****************************************************************************
 * FUNCTION
 *  wap_custom_get_mms_version
 * DESCRIPTION
 *  
 * PARAMETERS
 *  void
 * RETURNS
 *  
 *****************************************************************************/
kal_uint8 wap_custom_get_mms_version(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    extern kal_uint8 global_mms_version;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    /* 0: EM_MMS_VERSION_DEFAULT, 1: EM_MMS_VERSION_10, 2: EM_MMS_VERSION_11,  3: EM_MMS_VERSION_MAX */
    if (global_mms_version == 0)
    {
        return (kal_uint8) WAP_CUSTOM_CFG_MMS_VERSION;
    }
    else
    {
        return global_mms_version;
    }
}


/*****************************************************************************
 * FUNCTION
 *  wap_custom_get_max_mms_slides
 * DESCRIPTION
 *  
 * PARAMETERS
 *  void
 * RETURNS
 *  
 *****************************************************************************/
kal_uint8 wap_custom_get_max_mms_slides(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    kal_uint8 max_slides_no = (kal_uint8) WAP_CUSTOM_CFG_MAX_MMS_SLIDES;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    if (max_slides_no == 0)
    {
        return 1;
    }
    else
    {
        return max_slides_no;
    }
}


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

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


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

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


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

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


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

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


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

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


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

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    return WAP_CUSTOM_CFG_MAX_NBR_MMS_MSG;
}


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

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    return WAP_CUSTOM_CFG_MAX_MMS_MSG_SIZE;
}


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

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    return WAP_CUSTOM_CFG_MAX_MMS_WARNING_MSG;
}


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

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    return WAP_CUSTOM_CFG_MMS_GET_TIMEOUT;
}


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

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

⌨️ 快捷键说明

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