📄 plxbrowsetting.h
字号:
/***************************************************************************
*
* Pollex Mobile Platform
*
* Copyright (c) 2004 by Pollex Mobile Software Co., Ltd.
* All Rights Reserved
*
* Module :
*
* Purpose :
*
\**************************************************************************/
#ifndef __POLLEX_BROWSER_SETTING_HEADER__
#define __POLLEX_BROWSER_SETTING_HEADER__
#include "gui.h"
#include "CommonScreens.h"
#define HOMEPAGE_MAX_LEN (1024+1)
#define GATEWAY_MAX_LEN 16
typedef enum
{
AC_GSM, //gsm
AC_GPRS, //gprs
AC_MAXVALUE
}DIALCLASS, *PDIALCLASS;
typedef enum ProtocolType_{
PROTOCOL_TYPE_WSP =1,
PROTOCOL_TYPE_WHTTP,
PROTOCOL_TYPE_OMAD,
PROTOCOL_TYPE_OMADHTTP,
PROTOCOL_TYPE_MAXNUM
}PROTOCOLTYPE,*PPROTOCOLTYPE;
#define WSP_PORT_0 9200
#define WSP_PORT_1 9201
#define WSP_PORT_2 9202
#define WSP_PORT_3 9203
typedef struct tag_Browser_Setting
{
char strHomepage[HOMEPAGE_MAX_LEN];
char strGateway[GATEWAY_MAX_LEN];
unsigned int port;
unsigned int netAccoutIdx;
color norTextColor;
color lnkTextColor;
color lnkBgColor;
color atvTextColor;
color atvBgColor;
BOOL bCacheUsed;
int nCacheSize;
BOOL bCookieUsed;
int nCookieSize;
int nCookieNum;
BOOL bAllowImg;
BOOL bAllowMusic;
BOOL bRecPushMsg;
PROTOCOLTYPE ProtocolType;
}BROWSET, PBROWSET;
extern const BROWSET browDefault;
void EntryOfSetting(void);
void EntryOfColorSetting(void);
void PlxBrowInitSettingData(void);
const char *PlxBrowGetHomepage(void);
int PlxBrowSetHomepage(const char * p);
const char *PlxBrowGetGateway(void);
unsigned int PlxBrowGetPort(void);
int PlxBrowGetProtocolType(void);
//DIALCLASS PlxBrowGetDialClass(void);
unsigned int PlxBrowGetDialAccountIndex(void);
const color * PlxBrowGetNormalTextColor(void);
const color * PlxBrowGetLinkTextColor(void);
const color * PlxBrowGetLinkBackgroudColor(void);
const color * PlxBrowGetActiveTextColor(void);
const color * PlxBrowGetActiveBackgroundColor(void);
BOOL PlxBrowIsCacheEnable(void);
int PlxBrowGetCacheSize(void);
BOOL PlxBrowIsCookieEnable(void);
int PlxBrowGetCookieSize(void);
int PlxBrowGetCookieNumber(void);
BOOL PlxBrowIsImageAllowed(void);
BOOL PlxBrowIsMusicAllowed(void);
BOOL PlxBrowIsPushMessageAllowed(void);
void PlxBrowResetSettingChangeFlag(void);
BOOL PlxBrowIsBrowserNeedRestart(void);
BOOL PlxBrowIsBrowserOptionChanged(void);
void DeInitPlxBrowSetting(void);
#endif //__POLLEX_BROWSER_SETTING_HEADER__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -