browserui/browser/BrowserAppInc/BrowserUIVariant.hrh
branchRCL_3
changeset 48 8e6fa1719340
equal deleted inserted replaced
47:6385c4c93049 48:8e6fa1719340
       
     1 /*
       
     2 * Copyright (c) 2002 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 *      This file contains all the declarations to variate locally 
       
    16 *      whole Messaging subsystem
       
    17 *               
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 #ifndef BROWSERUIVARIANT_HRH
       
    23 #define BROWSERUIVARIANT_HRH
       
    24 
       
    25 
       
    26 /* 
       
    27 *  Comment the meaning of the each setting value here well !!
       
    28 *  What is the SD file and setting used for values, e.g.
       
    29 */
       
    30 
       
    31 // BrowserUI related values are in 0x101F861B.ini
       
    32 //setting "R-BrUi1"
       
    33 
       
    34 //
       
    35 // Feature to allow Multiple Windows to be available
       
    36 //
       
    37 #define KBrowserMultipleWindows   0x01
       
    38 
       
    39 //
       
    40 // Feature which allows a URL to be defined for searching the web
       
    41 // ON = 1
       
    42 //
       
    43 #define KBrowserUiSearchWeb   0x02
       
    44 
       
    45 
       
    46 //
       
    47 // Feature which determines whether the user can modify the Search URL.
       
    48 // Writable = 1
       
    49 // 
       
    50 #define KBrowserUiSearchWebWritable   0x04
       
    51 
       
    52 
       
    53 //
       
    54 // Feature to use HomePageSetting in Browser
       
    55 //
       
    56 #define KBrowserUiHomePageSetting    0x08
       
    57 
       
    58 //
       
    59 // Feature to limit functionality of Multiple Windows for midrange phones
       
    60 // 0 = Full functionality, 1 = Minimal functionality
       
    61 //
       
    62 #define  KBrowserMinimalMultipleWindows    0x10
       
    63 
       
    64 //
       
    65 // Feature to enable Page Overview and Graphical History
       
    66 // After 9.2 TB, This feature is used only to enable page overview
       
    67 //
       
    68 #ifdef BRDO_MULTITOUCH_ENABLED_FF
       
    69     #define  KBrowserGraphicalPage    0x00
       
    70 #else
       
    71     #define  KBrowserGraphicalPage    0x20
       
    72 #endif
       
    73 //
       
    74 // Feature to enable Auto Form Fill and Password Management options
       
    75 //
       
    76 #define  KBrowserAutoFormFill    0x40
       
    77 
       
    78 //
       
    79 // Feature to enable Graphical History 
       
    80 // (Page Overview must be on for Graphical History to be on)
       
    81 //
       
    82 #define  KBrowserGraphicalHistory    0x80
       
    83 
       
    84 //
       
    85 // Local variation flags for CDMA Browser UI shared data key "R-BrUI2" in 0x101F861B.ini.
       
    86 //
       
    87 enum TBrUI2LocalVariantFlags
       
    88     {
       
    89     //
       
    90     // Show/hide the Restart feature
       
    91     //
       
    92     EBrowserLVRestart = 0x01,
       
    93 
       
    94     //
       
    95     // Disable the connection manager dialogs to use NAI.
       
    96     //
       
    97     EBrowserLVNAIConnection = 0x02,
       
    98 
       
    99     //
       
   100     // Show/hide the Query Exit feature
       
   101     //
       
   102     EBrowserLVQueryExit = 0x04,
       
   103 	//
       
   104 	// Send/Don't send the Referrer Header
       
   105 	//
       
   106 	EBrowserLVSendReferrerHeader = 0x08,
       
   107 
       
   108     //
       
   109     // Show/hide Dynamic Lable feature
       
   110     //
       
   111     EBrowserLVDynamicLabel = 0x10
       
   112     };
       
   113 
       
   114 // If, for some good reason, you need compile time variation per
       
   115 // release use the release flags. This file is the only place to use the
       
   116 // release flags ! However, think hard why you can not use SD setting !!!
       
   117 //
       
   118 #if defined (__SERIES60_20__)
       
   119 //const TInt KSomeCompileTimeConstantValue = 1;
       
   120 #elif defined (____SERIES60_21__)
       
   121 //const TInt KSomeCompileTimeConstantValue = 2;
       
   122 #endif
       
   123 
       
   124 #endif // BROWSERUIVARIANT_HRH
       
   125 
       
   126 
       
   127 //--------------------- in CPP code --------------------------------
       
   128 
       
   129 /**
       
   130 * How to use: 
       
   131 *     TInt featureBitmask = 0;
       
   132 *     if ( sharedDataClient.Assign( KSDUidBrowserLV ) == KErrNone )
       
   133 *         {
       
   134 *         if ( sharedDataClient.GetInt( 
       
   135 *             KBrowserUiLV1, featureBitmask ) != KErrNone )
       
   136 *             {
       
   137 *             featureBitmask = 0; // if problems reading shared data, assume everything is off
       
   138 *             } 
       
   139 *        }
       
   140 *        
       
   141 *        //
       
   142 *        // Get the value once and save it for later use.
       
   143 *        // No need always to access shared data every time when a value is needed
       
   144 * 
       
   145 *        // Use the local feature flags at run-time for different behaviour per release
       
   146 *        if  ( featureBitmask & KBrowserOnScreenScrollBar  )
       
   147 *           {
       
   148 *           //on screen scrollbar is supported, cache this fact here
       
   149 *           }
       
   150 */