📄 plxbrowdefault.c
字号:
/***************************************************************************
*
* Pollex Mobile Platform
*
* Copyright (c) 2004 by Pollex Mobile Software Co., Ltd.
* All Rights Reserved
*
* Module :
*
* Purpose :
*
\**************************************************************************/
#include "PlxConfig.h"
#if defined(PROJECT_BRANCH_06A)
#define __NEWSIMULATOR
#include "FileSystemDef.h"
#undef __NEWSIMULATOR
#endif // defined(PROJECT_BRANCH_06A)
#include "PlxBrowPublic.h"
#include "PlxBrowSetting.h"
#include "PlxBrowBookmark.h"
const BROWSET browDefault =
{
#ifdef MMI_ON_WIN32
{"http://wap.sina.com"}, //homepage
{"10.10.20.8"}, //gateway
8080, //port
#else
{"http://wap.monternet.com"}, //homepage
{"10.0.0.172"}, //gateway
80, //port
#endif
14, //net account index
{0, 0, 0, 100}, //normal text color
{20, 20, 255, 100}, //link text color
{255, 255, 255, 100}, //link background color
{255, 0, 0, 100}, //active text color
{255, 255, 255, 100}, //active background color
TRUE, //use cache
50 * 1024, //cache size
TRUE, //use cookie
50 * 1024, //cookie size
5, //cookie number
TRUE, //allow image
TRUE, //allow music
TRUE, //receive push messages
PROTOCOL_TYPE_WHTTP //whttp protocol
};
#ifdef __PLXBROW_DEFAULT_BOOKMARK_
//注意:设置默认书签:
//书签URL地址最大为200个字符,超过会被截断,采用ANSII编码;
//书签名最大12个字符,超过会被截断;
//书签名的编码格式可以是以下几种,默认编码是UTF8:
//DEFBMNAME_ANSII, //ANSII
//DEFBMNAME_UTF8, //UTF8
//DEFBMNAME_UNICODE, //UNICODE
//DEFBMNAME_GB2312, //GB2312
const DEFAULTBOOKMARK bookmarkDefault[] = {
/* example:
{
{DEFBMNAME_ANSII},
{"sohu"},
{"http://wap.sohu.com"}
},
{
{DEFBMNAME_UTF8},
{"kongzhong"},
{"http://wap.kongzhong.com"}
},
{
{DEFBMNAME_UNICODE},
{(char*)L"baidu"}, // L符号不支持中文
{"http://wap.baidu.com"}
},
{
{DEFBMNAME_GB2312},
{"网易"},
{"http://wap.163.com"}
},
*/
{//NO.1
{DEFBMNAME_UTF8},
{"kongzhong"},
{"http://wap.kongzhong.com"}
},
{//NO.2
{DEFBMNAME_UTF8},
{"baidu"},
{"http://wap.baidu.com"}
},
{//NO.3
{DEFBMNAME_UTF8},
{"163"},
{"http://wap.163.com"}
},
{//NO.4
{DEFBMNAME_UTF8},
{"msn"},
{"http://wapmail.yi.org"}
},
{//NO.5
{DEFBMNAME_UTF8},
{"sina"},
{"http://wap.sina.com.cn"}
}
};
const int nCountOfDefaultBMark = sizeof(bookmarkDefault) / sizeof(DEFAULTBOOKMARK);
#endif //__PLXBROW_DEFAULT_BOOKMARK
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -