browser-eal/include/gwebcommon.h

Go to the documentation of this file.
00001 /* ***** BEGIN LICENSE BLOCK *****
00002  * Version: MPL 1.1
00003  *
00004  * The contents of this file are subject to the Mozilla Public License Version
00005  * 1.1 (the "License"); you may not use this file except in compliance with
00006  * the License. You may obtain a copy of the License at
00007  * http://www.mozilla.org/MPL/
00008  *
00009  * Software distributed under the License is distributed on an "AS IS" basis,
00010  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00011  * for the specific language governing rights and limitations under the
00012  * License.
00013  *
00014  * The Original Code is the EAL package.
00015  *
00016  * The Initial Developer of the Original Code is Nokia Corporation.
00017  * Portions created by the Initial Developer are Copyright (C) 2005
00018  * the Initial Developer. All Rights Reserved.
00019  *
00020  * Contact: Leonid Zolotarev <leonid.zolotarev@nokia.com>
00021  *
00022  * ***** END LICENSE BLOCK ***** */
00023 
00024 #include <glib-object.h>
00025 
00026 #ifndef __GWEBCOMMON_H__
00027 #define __GWEBCOMMON_H__
00028 
00029 G_BEGIN_DECLS
00030 
00382 typedef enum
00383 {
00384         G_WEB_STATUS_OK          =  0,
00385         G_WEB_ERR                = -1,
00386         G_WEB_ERR_NO_MEMORY      = -2,
00387         G_WEB_ERR_NULL_POINTER   = -3,
00388         G_WEB_ERR_OUT_OF_RANGE   = -4,
00389         G_WEB_ERR_NO_ACCESS      = -5,
00390         G_WEB_ERR_FILE_NOT_FOUND = -7,
00391         G_WEB_ERR_NO_DISK        = -8,
00392         G_WEB_ERR_NOT_SUPPORTED  = -9
00393 } GWebStatus;
00394 
00398 typedef enum
00399 {
00400         G_WEBENGINE_ENCODING_AUTOMATIC,
00401         G_WEBENGINE_ENCODING_UTF8,
00402         G_WEBENGINE_ENCODING_UTF16,
00403         G_WEBENGINE_ENCODING_USASCII,
00404         G_WEBENGINE_ENCODING_ISO8859_1,
00405         G_WEBENGINE_ENCODING_ISO8859_2,
00406         G_WEBENGINE_ENCODING_ISO8859_3,
00407         G_WEBENGINE_ENCODING_ISO8859_4,
00408         G_WEBENGINE_ENCODING_ISO8859_5,
00409         G_WEBENGINE_ENCODING_ISO8859_6,
00410         G_WEBENGINE_ENCODING_ISO8859_7,
00411         G_WEBENGINE_ENCODING_ISO8859_8,
00412         G_WEBENGINE_ENCODING_ISO8859_9,
00413         G_WEBENGINE_ENCODING_ISO8859_10,
00414         G_WEBENGINE_ENCODING_ISO8859_11,
00415         G_WEBENGINE_ENCODING_ISO8859_13,
00416         G_WEBENGINE_ENCODING_ISO8859_14,
00417         G_WEBENGINE_ENCODING_ISO8859_15,
00418         G_WEBENGINE_ENCODING_KOI8_R,
00419         G_WEBENGINE_ENCODING_KOI8_U,
00420         G_WEBENGINE_ENCODING_CP_1250,
00421         G_WEBENGINE_ENCODING_CP_1251,
00422         G_WEBENGINE_ENCODING_CP_1252,
00423         G_WEBENGINE_ENCODING_CP_1253,
00424         G_WEBENGINE_ENCODING_CP_1254,
00425         G_WEBENGINE_ENCODING_CP_1255,
00426         G_WEBENGINE_ENCODING_CP_1256,
00427         G_WEBENGINE_ENCODING_CP_1257,
00428         G_WEBENGINE_ENCODING_CP_1258,
00429         G_WEBENGINE_ENCODING_SHIFTJIS,
00430         G_WEBENGINE_ENCODING_ISO2022_JP,
00431         G_WEBENGINE_ENCODING_BIG5,
00432         G_WEBENGINE_ENCODING_EUC_JP,
00433         G_WEBENGINE_ENCODING_GB2312,
00434         G_WEBENGINE_ENCODING_VISCII,
00435         G_WEBENGINE_ENCODING_EUC_KR,
00436         G_WEBENGINE_ENCODING_HZ_GB2312,
00437         G_WEBENGINE_ENCODING_GBK,
00438         G_WEBENGINE_ENCODING_EUC_TW,
00439         G_WEBENGINE_ENCODING_WS2,
00440         G_WEBENGINE_ENCODING_IBM866,
00441         G_WEBENGINE_ENCODING_TCVN,
00442         G_WEBENGINE_ENCODING_VPS,
00443         G_WEBENGINE_ENCODING_JAPANESE_AUTOMATIC,
00444         G_WEBENGINE_ENCODING_CHINESE_AUTOMATIC
00445 } GWebEngineEncoding;
00446 
00450 typedef enum
00451 {
00452         G_WEBENGINE_LAYOUT_NORMAL,
00453         G_WEBENGINE_LAYOUT_SSR,
00454         G_WEBENGINE_LAYOUT_MSR
00455 } GWebEngineLayoutMode;
00456 
00460 typedef enum
00461 {
00462         G_WEBENGINE_POLICY_NO_IMAGES = 1,
00463         G_WEBENGINE_POLICY_LOADED_IMAGES,
00464         G_WEBENGINE_POLICY_ALL_IMAGES
00465 } GWebEngineImagePolicy;
00466 
00467 
00471 typedef enum { 
00472         G_WEB_PASSWORD_STORE = 0,
00473         G_WEB_PASSWORD_STORE_ENTIRE_SERVER, 
00474         G_WEB_PASSWORD_DONT_STORE, 
00475         G_WEB_PASSWORD_NEVER_STORE_ON_THIS_PAGE, 
00476         G_WEB_PASSWORD_NEVER_STORE_ON_ENTIRE_SERVER 
00477 } GWebPasswordAction;
00478 
00482 typedef enum
00483 {
00484         G_WEBENGINE_SAVE_NO_INLINES,
00485         G_WEBENGINE_SAVE_ALL_INLINES,
00486         G_WEBENGINE_SAVE_FRAMES
00487 } GWebEngineSaveAction;
00488 
00492 typedef enum
00493 {
00494         G_WEB_COOKIE_NO_ACTION = 0,
00495         G_WEB_COOKIE_ACCEPT_AND_UPDATES = 1,
00496         G_WEB_COOKIE_ACCEPT_AND_SHOW_UPDATES = 2,
00497         G_WEB_COOKIE_ACCEPT_BUT_DISCARD = 4,
00498         G_WEB_COOKIE_ACCEPT_AND_SAVE = 8,
00499         G_WEB_COOKIE_ACCEPT_ALL_FROM_SERVER = 16,
00500         G_WEB_COOKIE_REFUSE_ALL_FROM_SERVER = 32,
00501         G_WEB_COOKIE_ACCEPT_ALL_FROM_DOMAIN = 64,
00502         G_WEB_COOKIE_REFUSE_ALL_FROM_DOMAIN = 128,
00503         G_WEB_COOKIE_3P_ACCEPT_ALL_FROM_SERVER = 256,
00504         G_WEB_COOKIE_3P_REFUSE_ALL_FROM_SERVER = 512,
00505         G_WEB_COOKIE_3P_ACCEPT_ALL_FROM_DOMAIN = 1024,
00506         G_WEB_COOKIE_3P_REFUSE_ALL_FROM_DOMAIN = 2048
00507 } GWebCookieAction;
00508 
00512 typedef enum
00513 {
00514         G_WEB_CERT_ACTION_OK      = 0x0001, 
00515         G_WEB_CERT_ACTION_CANCEL  = 0x0002, 
00516         G_WEB_CERT_ACTION_ACCEPT  = 0x0004, 
00517         G_WEB_CERT_ACTION_INSTALL = 0x0008, 
00518         G_WEB_CERT_ACTION_DELETE  = 0x0010  
00519 } GWebCertificateAction;
00520 
00524 typedef enum
00525 {
00526         G_WEB_CERT_REACTION_NOTHING, 
00527         G_WEB_CERT_REACTION_CLOSE,   
00528         G_WEB_CERT_REACTION_REMOVE   
00529 } GWebCertificateReaction;
00530 
00534 typedef enum
00535 {
00536   G_WEB_CERT_MESS_NOSTATE       = 0x0000,       
00537   G_WEB_CERT_MESS_UNTRUSTED     = 0x0001,       
00538   G_WEB_CERT_MESS_WRONGNAME     = 0x0002,       
00539   G_WEB_CERT_MESS_EXPIRED       = 0x0004,       
00540   G_WEB_CERT_MESS_PREVALID      = 0x0008,       
00541   G_WEB_CERT_MESS_ALGORITHM     = 0x0010,       
00542   G_WEB_CERT_MESS_VERSION       = 0x0020,       
00543   G_WEB_CERT_MESS_UNKNOWN       = 0x0040,       
00544   G_WEB_CERT_MESS_VALID         = 0x0080        
00545 } GWebCertificateMessage;
00546 
00550 typedef enum
00551 {
00552         G_WEB_DIALOG_NO_BUTTON,
00553         G_WEB_DIALOG_BUTTON_OK,
00554         G_WEB_DIALOG_BUTTON_CANCEL,
00555         G_WEB_DIALOG_BUTTON_YES,
00556         G_WEB_DIALOG_BUTTON_NO,
00557         G_WEB_DIALOG_BUTTON_ABORT,
00558         G_WEB_DIALOG_BUTTON_RETRY,
00559         G_WEB_DIALOG_BUTTON_IGNORE
00560 } GWebDialogButton;
00561 
00565 typedef enum
00566 {
00567         G_WEB_DIALOG_MESSAGE_TYPE_INFO,
00568         G_WEB_DIALOG_MESSAGE_TYPE_WARNING,
00569         G_WEB_DIALOG_MESSAGE_TYPE_ERROR
00570 } GWebDialogMessageType;
00571 
00575 typedef enum
00576 {
00577         G_WEB_PLUGINS_SHOW = 1,
00578         G_WEB_PLUGINS_HIDE = 2,
00579         G_WEB_PLUGINS_RESUME = 3,
00580         G_WEB_PLUGINS_SUSPEND = 4,
00581         G_WEB_PLUGINS_LOW_MEMORY = 5,
00582         G_WEB_PLUGINS_NORMAL_MEMORY = 6,
00583         G_WEB_PLUGINS_LAST = 7
00584 } GWebPluginEvent;
00585 
00591 GObject* g_web_new (void);
00592 
00597 void g_web_set_env (void);
00598 
00599 G_END_DECLS
00600 
00601 #endif /* __GWEBCOMMON_H__ */

Generated on Tue Sep 25 10:37:04 2007 for browser-eal by  doxygen 1.5.1