webengine/wmlengine/src/utils/include/nwx_settings.h
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef NWX_SETTINGS_H
       
    20 #define NWX_SETTINGS_H
       
    21 
       
    22 #ifdef __cplusplus
       
    23 extern "C" {
       
    24 #endif
       
    25 
       
    26 /*
       
    27 ** Includes
       
    28 */
       
    29 #include <e32def.h>
       
    30 #include "nwx_defs.h"
       
    31 
       
    32 /*
       
    33 ** Global Function Declarations
       
    34 */
       
    35 
       
    36 /* Basic browser settings */
       
    37 NW_Ucs2 *NW_Settings_GetGateway(void); //Deprecated
       
    38 NW_Bool NW_Settings_SetGateway(const NW_Ucs2 *gateway); //Deprecated
       
    39 
       
    40 NW_Bool NW_Settings_GetStartFromHomepage(void); //Deprecated
       
    41 
       
    42 NW_Uint8 NW_Settings_GetFontSizeLevel(void);
       
    43 NW_Bool NW_Settings_SetFontSizeLevel(NW_Uint8 fontSizeLevel);
       
    44 
       
    45 NW_Uint16 NW_Settings_GetEncoding(void);
       
    46 NW_Bool NW_Settings_SetEncoding(NW_Uint16 encoding);
       
    47 
       
    48 NW_Bool NW_Settings_GetCookiesEnabled(void);
       
    49 NW_Bool NW_Settings_SetCookiesEnabled(const NW_Bool enabled);
       
    50 
       
    51 NW_Bool NW_Settings_GetImagesEnabled(void);
       
    52 NW_Bool NW_Settings_SetImagesEnabled(const NW_Bool enabled);
       
    53 
       
    54 NW_Bool NW_Settings_GetVerticalLayoutEnabled(void);
       
    55 NW_Bool NW_Settings_SetVerticalLayoutEnabled(const NW_Bool enabled);
       
    56 
       
    57 // This method only changes the browser's cached value for whether or
       
    58 // not vertical layout is enabled. DO NOT USE if you want to be setting
       
    59 // the value in the ini file. Instead use, NW_Settings_SetVerticalLayoutEnabled
       
    60 NW_Bool NW_Settings_SetInternalVerticalLayoutEnabled(const NW_Bool enabled);
       
    61 
       
    62 NW_Bool NW_Settings_GetCSSFetchEnabled(void);
       
    63 NW_Bool NW_Settings_SetCSSFetchEnabled(const NW_Bool enabled);
       
    64 
       
    65 NW_Bool NW_Settings_SetWmlTextEnabled(const NW_Bool enabled); //Deprecated
       
    66 
       
    67 NW_Bool NW_Settings_GetEcmaScriptEnabled(void);
       
    68 void NW_Settings_SetEcmaScriptEnabled(const NW_Bool enabled);
       
    69 
       
    70 NW_Bool NW_Settings_GetTextWrapEnabled(void);
       
    71 NW_Bool NW_Settings_SetTextWrapEnabled(const NW_Bool enabled);
       
    72 
       
    73 NW_Bool NW_Settings_Get2WayScrollEnabled(void);
       
    74 NW_Bool NW_Settings_Set2WayScrollEnabled(const NW_Bool enabled);
       
    75 
       
    76 NW_Bool NW_Settings_SetWspConnType(const NW_Uint32 connType); //Deprecated
       
    77 
       
    78 NW_Int32 NW_Settings_GetGMTOffset(void); //Deprecated
       
    79 NW_Bool NW_Settings_SetGMTOffset(const NW_Int32 GMTOffset); //Deprecated
       
    80 
       
    81 NW_Bool NW_Settings_GetAlwaysConfirmDtmfSending(void); //Deprecated
       
    82 NW_Bool NW_Settings_SetAlwaysConfirmDtmfSending(const NW_Bool always); //Deprecated
       
    83 
       
    84 NW_Uint32 NW_Settings_GetOriginalEncoding();
       
    85 void NW_Settings_SetOriginalEncoding(NW_Uint32 encoding);
       
    86 
       
    87 void NW_Settings_SetDisableSmallScreenLayout(const NW_Bool disabled);
       
    88 NW_Bool NW_Settings_GetDisableSmallScreenLayout();
       
    89 
       
    90 NW_Uint16 NW_Settings_GetDefaultCharset(void);
       
    91 NW_Bool NW_Settings_SetDefaultCharset(NW_Uint16 defaultCharset); //Deprecated
       
    92 
       
    93 NW_Uint32 NW_Settings_GetBrowsingAllowedWhileMMSOngoing(void); //Deprecated
       
    94 
       
    95 NW_Bool NW_Settings_GetIsBrowserEmbedded(void);
       
    96 void NW_Settings_SetIsBrowserEmbedded(NW_Bool isEmbedded);
       
    97 
       
    98 TUint NW_Settings_GetLocalFeatures(void);
       
    99 
       
   100 NW_Ucs2* NW_Settings_GetTempFilesPath(void);
       
   101 
       
   102 NW_Uint8 NW_Settings_GetMMCDrive(void);
       
   103 
       
   104 NW_Bool NW_Settings_GetIMEINotifyEnabled(void);
       
   105 void NW_Settings_SetIMEINotifyEnabled(const NW_Bool enabled);
       
   106 
       
   107 NW_Bool NW_Settings_GetSendReferrerHeader(void);
       
   108 void NW_Settings_SetSendReferrerHeader(const NW_Bool enabled);
       
   109 
       
   110 NW_Bool NW_Settings_GetHttpSecurityWarnings(void);
       
   111 void NW_Settings_SetHttpSecurityWarnings(const NW_Bool enabled);
       
   112 
       
   113 NW_Uint32 NW_Settings_GetIAPId(void);
       
   114 void NW_Settings_SetIAPId(NW_Uint32 aIapId);
       
   115 
       
   116 #ifdef __cplusplus
       
   117 } /* extern "C" */
       
   118 #endif
       
   119 
       
   120 #endif  /* NWX_SETTINGS_H */