browserui/browser/BrowserAppInc/BrowserUIVariant.hrh
changeset 51 48e827313edd
parent 37 481242ead638
child 53 f427d27b98d8
equal deleted inserted replaced
37:481242ead638 51:48e827313edd
     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 //
       
    67 #define  KBrowserGraphicalPage    0x20
       
    68 
       
    69 //
       
    70 // Feature to enable Auto Form Fill and Password Management options
       
    71 //
       
    72 #define  KBrowserAutoFormFill    0x40
       
    73 
       
    74 //
       
    75 // Feature to enable Graphical History 
       
    76 // (Page Overview must be on for Graphical History to be on)
       
    77 //
       
    78 #define  KBrowserGraphicalHistory    0x80
       
    79 
       
    80 //
       
    81 // Local variation flags for CDMA Browser UI shared data key "R-BrUI2" in 0x101F861B.ini.
       
    82 //
       
    83 enum TBrUI2LocalVariantFlags
       
    84     {
       
    85     //
       
    86     // Show/hide the Restart feature
       
    87     //
       
    88     EBrowserLVRestart = 0x01,
       
    89 
       
    90     //
       
    91     // Disable the connection manager dialogs to use NAI.
       
    92     //
       
    93     EBrowserLVNAIConnection = 0x02,
       
    94 
       
    95     //
       
    96     // Show/hide the Query Exit feature
       
    97     //
       
    98     EBrowserLVQueryExit = 0x04,
       
    99 	//
       
   100 	// Send/Don't send the Referrer Header
       
   101 	//
       
   102 	EBrowserLVSendReferrerHeader = 0x08,
       
   103 
       
   104     //
       
   105     // Show/hide Dynamic Lable feature
       
   106     //
       
   107     EBrowserLVDynamicLabel = 0x10
       
   108     };
       
   109 
       
   110 // If, for some good reason, you need compile time variation per
       
   111 // release use the release flags. This file is the only place to use the
       
   112 // release flags ! However, think hard why you can not use SD setting !!!
       
   113 //
       
   114 #if defined (__SERIES60_20__)
       
   115 //const TInt KSomeCompileTimeConstantValue = 1;
       
   116 #elif defined (____SERIES60_21__)
       
   117 //const TInt KSomeCompileTimeConstantValue = 2;
       
   118 #endif
       
   119 
       
   120 #endif // BROWSERUIVARIANT_HRH
       
   121 
       
   122 
       
   123 //--------------------- in CPP code --------------------------------
       
   124 
       
   125 /**
       
   126 * How to use: 
       
   127 *     TInt featureBitmask = 0;
       
   128 *     if ( sharedDataClient.Assign( KSDUidBrowserLV ) == KErrNone )
       
   129 *         {
       
   130 *         if ( sharedDataClient.GetInt( 
       
   131 *             KBrowserUiLV1, featureBitmask ) != KErrNone )
       
   132 *             {
       
   133 *             featureBitmask = 0; // if problems reading shared data, assume everything is off
       
   134 *             } 
       
   135 *        }
       
   136 *        
       
   137 *        //
       
   138 *        // Get the value once and save it for later use.
       
   139 *        // No need always to access shared data every time when a value is needed
       
   140 * 
       
   141 *        // Use the local feature flags at run-time for different behaviour per release
       
   142 *        if  ( featureBitmask & KBrowserOnScreenScrollBar  )
       
   143 *           {
       
   144 *           //on screen scrollbar is supported, cache this fact here
       
   145 *           }
       
   146 */