📄 jbrowsermmisettings.c
字号:
S16 error;
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
index = GetCurrHiliteID();
if (g_brw_cntx.isServiceMsgSetting) /* added by tk */
{
/* service_message_status = 0; */
g_brw_cntx.isServiceMsgSetting = E_FALSE; /* added by tk */
mmi_brw_enable_push_Message(0); /* Added By Vivek 27 june, 2006 */
pfnUnicodeStrcpy((PS8) hintData[index], (PS8) GetString(STR_GLOBAL_OFF));
Category52ChangeItemDescription(index, hintData[index]);
ChangeLeftSoftkey(STR_GLOBAL_ON, 0);
}
else
{
g_brw_cntx.isServiceMsgSetting = E_TRUE; /* added by tk */
mmi_brw_enable_push_Message(1); /* Added By Vivek 27 june, 2006 */
pfnUnicodeStrcpy((PS8) hintData[index], (PS8) GetString(STR_GLOBAL_ON));
Category52ChangeItemDescription(index, hintData[index]);
ChangeLeftSoftkey(STR_GLOBAL_OFF, 0);
}
/* PMT ADDED BY TK */
WriteValue(NVRAM_BRW_SHOW_SERVICE_INBOX_MSG, &(g_brw_cntx.isServiceMsgSetting), DS_BYTE, &error);
/* PMT TK END */
RedrawCategoryFunction();
mmi_brw_setting_service_messages_highlight_hdlr();
}
/* ---------------------------Clear Cache------------------------------// */
/*****************************************************************************
* FUNCTION
* mmi_brw_setting_clear_cache_highlight_hdlr
* DESCRIPTION
* Highlight handler of Clear Cache menu item.
* Register key handlers.
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
void mmi_brw_setting_clear_cache_highlight_hdlr(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK);
ChangeRightSoftkey(STR_GLOBAL_BACK, IMG_GLOBAL_BACK);
SetLeftSoftkeyFunction(mmi_brw_setting_clear_cache_confirm, KEY_EVENT_UP);
/* SetKeyHandler(mmi_brw_setting_clear_cache_confirm, KEY_RIGHT_ARROW, KEY_EVENT_DOWN); */
}
/*****************************************************************************
* FUNCTION
* mmi_brw_setting_clear_cache_confirm
* DESCRIPTION
* This function displays the confirmation screen for deleting the
* browser setting cache.
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
void mmi_brw_setting_clear_cache_confirm(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
DisplayConfirm(
STR_GLOBAL_YES,
IMG_GLOBAL_YES,
STR_GLOBAL_NO,
IMG_GLOBAL_NO,
get_string(STR_ID_BRW_DELETE_CACHE),
IMG_GLOBAL_QUESTION,
WARNING_TONE);
SetLeftSoftkeyFunction(mmi_brw_setting_clear_cache, KEY_EVENT_UP);
SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
}
/*****************************************************************************
* FUNCTION
* mmi_brw_setting_clear_cache
* DESCRIPTION
* Deletes the Browser Setting Cache.
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
void mmi_brw_setting_clear_cache(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
JC_RETCODE eRet = JC_OK;
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
eRet = jdi_BrowserClearCache(pBrowserCtxt);
if (eRet == JC_OK)
{
/* jdi_BrowserCacheSave(pBrowserCtxt); */
DisplayPopup(
(PU8) GetString(STR_GLOBAL_DONE),
IMG_GLOBAL_ACTIVATED,
0,
JBROWSER_POPUP_TIME,
SUCCESS_TONE);
/* Clear all the Authorization Information along with Clear Cache */
jdi_BrowserClearAuthInfo(pBrowserCtxt, E_BR_CLEAR_ALL);
}
else
{
DisplayPopup(
(PU8) GetString(STR_GLOBAL_ERROR),
IMG_GLOBAL_ERROR,
1,
JBROWSER_POPUP_TIME,
ERROR_TONE);
}
}
/* ---------------------------Clear Cookies------------------------------// */
/*****************************************************************************
* FUNCTION
* mmi_brw_setting_clear_cookies_highlight_hdlr
* DESCRIPTION
* Highlight handler of Clear Cookies menu item.
* Register key handlers.
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
void mmi_brw_setting_clear_cookies_highlight_hdlr(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK);
ChangeRightSoftkey(STR_GLOBAL_BACK, IMG_GLOBAL_BACK);
SetLeftSoftkeyFunction(mmi_brw_setting_clear_cookies_confirm, KEY_EVENT_UP);
/* SetKeyHandler(mmi_brw_setting_clear_cookies_confirm, KEY_RIGHT_ARROW,KEY_EVENT_DOWN); */
}
/*****************************************************************************
* FUNCTION
* mmi_brw_setting_clear_cookies_confirm
* DESCRIPTION
* This function displays the confirmation screen for deleting the
* browser setting cookies.
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
void mmi_brw_setting_clear_cookies_confirm(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
DisplayConfirm(
STR_GLOBAL_YES,
IMG_GLOBAL_YES,
STR_GLOBAL_NO,
IMG_GLOBAL_NO,
get_string(STR_ID_BRW_DELETE_COOKIES),
IMG_GLOBAL_QUESTION,
WARNING_TONE);
SetLeftSoftkeyFunction(mmi_brw_setting_clear_cookies, KEY_EVENT_UP);
SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
}
/*****************************************************************************
* FUNCTION
* mmi_brw_setting_clear_cookies
* DESCRIPTION
* Deletes the Browser Setting Cookies.
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
void mmi_brw_setting_clear_cookies(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
JC_RETCODE eRet = JC_OK;
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
eRet = jdi_BrowserClearCookie(pBrowserCtxt);
if (eRet == JC_OK)
{
jdi_BrowserCookieSave(pBrowserCtxt);
DisplayPopup(
(PU8) GetString(STR_GLOBAL_DONE),
IMG_GLOBAL_ACTIVATED,
0,
JBROWSER_POPUP_TIME,
SUCCESS_TONE);
}
else
{
DisplayPopup(
(PU8) GetString(STR_GLOBAL_ERROR),
IMG_GLOBAL_ERROR,
1,
JBROWSER_POPUP_TIME,
ERROR_TONE);
}
}
/* ---------------------------Trusted Certificates---------------------------// */
/*****************************************************************************
* FUNCTION
* mmi_brw_setting_trusted_certificates_highlight_hdlr
* DESCRIPTION
* Highlight handler of Trusted Certificates menu item.
* Register key handlers.
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
#if defined (WAP_SEC_SUPPORT) && defined (JATAAYU_SUPPORT)
void mmi_brw_setting_trusted_certificates_highlight_hdlr(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK);
ChangeRightSoftkey(STR_GLOBAL_BACK, IMG_GLOBAL_BACK);
SetLeftSoftkeyFunction(NULL, KEY_EVENT_UP);
SetKeyHandler(NULL, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
}
#endif /* defined (WAP_SEC_SUPPORT) && defined (JATAAYU_SUPPORT) */
/*****************************************************************************
* FUNCTION
* mmi_brw_set_timeout_value
* DESCRIPTION
* External function to set the timeout value
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
void mmi_brw_set_timeout_value(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
nvram_wap_profile_content_struct *activated_wap_profile;
ST_BROWSER_SET_OPTION brw_set_timeout;
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
activated_wap_profile = mmi_ph_get_activated_wap_profile();
if (activated_wap_profile->conn_type == PH_CONN_TYPE_HTTP)
{
brw_set_timeout.iMaxConnectRetries = 0;
brw_set_timeout.iTimeOutVal = g_brw_cntx.timeout_value;
}
else
{
brw_set_timeout.iMaxConnectRetries = BRW_MAX_WSP_RETRIES;
brw_set_timeout.iTimeOutVal = (g_brw_cntx.timeout_value)/(BRW_MAX_WSP_RETRIES+1);
}
jdi_BrowserSetOption(pBrowserCtxt, &brw_set_timeout);
}
#endif /* defined (JATAAYU_SUPPORT) && defined (WAP_SUPPORT) */ /* #if defined (JATAAYU_SUPPORT) && defined (WAP_SUPPORT) */
/* PMT HIMANSHU END 20051207 */
#endif /* _MMI_JBROWSERMMISETTINGS_C */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -