browserui/browser/BrowserAppInc/Preferences.h
changeset 19 16a119033e3e
parent 10 57d5b8e231c4
child 22 d6f226a5ad2c
equal deleted inserted replaced
18:4530440261a8 19:16a119033e3e
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description: 
    14 * Description:
    15 *      Interface for Preferences handling.
    15 *      Interface for Preferences handling.
    16 *
    16 *
    17 *
    17 *
    18 */
    18 */
    19 
    19 
    81     TBool                           iQueryOnExit;
    81     TBool                           iQueryOnExit;
    82     TBool                           iSendReferrer;
    82     TBool                           iSendReferrer;
    83     TWmlSettingsAdaptiveBookmarks   iAdaptiveBookmarks;
    83     TWmlSettingsAdaptiveBookmarks   iAdaptiveBookmarks;
    84     TWmlSettingsHomePage            iHomePgType;
    84     TWmlSettingsHomePage            iHomePgType;
    85     TBool                           iHTTPSecuritySupressed;
    85     TBool                           iHTTPSecuritySupressed;
    86     TBool                           iDownloadsOpen;    
    86     TBool                           iDownloadsOpen;
    87     TBool                           iConnDialogs;
    87     TBool                           iConnDialogs;
    88     TBool                           iHttpSecurityWarnings;
    88     TBool                           iHttpSecurityWarnings;
    89     TInt                            iMediaVolume;
    89     TInt                            iMediaVolume;
    90     HBufC*                          iSearchPgURL;
    90     HBufC*                          iSearchPgURL;
    91     HBufC*                          iHomePgURL;
    91     HBufC*                          iHomePgURL;
   114     TInt                            iToolbarButton4Cmd;     // see Toolbar Button Command List for cenrep values
   114     TInt                            iToolbarButton4Cmd;     // see Toolbar Button Command List for cenrep values
   115     TInt                            iToolbarButton5Cmd;     // see Toolbar Button Command List for cenrep values
   115     TInt                            iToolbarButton5Cmd;     // see Toolbar Button Command List for cenrep values
   116     TInt                            iToolbarButton6Cmd;     // see Toolbar Button Command List for cenrep values
   116     TInt                            iToolbarButton6Cmd;     // see Toolbar Button Command List for cenrep values
   117     TInt                            iToolbarButton7Cmd;     // see Toolbar Button Command List for cenrep values
   117     TInt                            iToolbarButton7Cmd;     // see Toolbar Button Command List for cenrep values
   118 	TInt							iShortcutKeysForQwerty;
   118 	TInt							iShortcutKeysForQwerty;
   119 	TInt 							iShortcutKey1Cmd;    
   119 	TInt 							iShortcutKey1Cmd;
   120 	TInt 							iShortcutKey2Cmd;    
   120 	TInt 							iShortcutKey2Cmd;
   121 	TInt 							iShortcutKey3Cmd;    
   121 	TInt 							iShortcutKey3Cmd;
   122 	TInt 							iShortcutKey4Cmd;    
   122 	TInt 							iShortcutKey4Cmd;
   123 	TInt 							iShortcutKey5Cmd;    
   123 	TInt 							iShortcutKey5Cmd;
   124 	TInt 							iShortcutKey6Cmd;    
   124 	TInt 							iShortcutKey6Cmd;
   125 	TInt 							iShortcutKey7Cmd;    
   125 	TInt 							iShortcutKey7Cmd;
   126 	TInt 							iShortcutKey8Cmd;    
   126 	TInt 							iShortcutKey8Cmd;
   127 	TInt 							iShortcutKey9Cmd;    
   127 	TInt 							iShortcutKey9Cmd;
   128 	TInt 							iShortcutKey0Cmd;    
   128 	TInt 							iShortcutKey0Cmd;
   129 	TInt 							iShortcutKeyStarCmd;    
   129 	TInt 							iShortcutKeyStarCmd;
   130 	TInt 							iShortcutKeyHashCmd;
   130 	TInt 							iShortcutKeyHashCmd;
   131 	TUint32							iScriptLog;
   131 	TUint32							iScriptLog;
   132 	// Minimum, Maximum and Default (for new page) Zoom Level settings
   132 	// Minimum, Maximum and Default (for new page) Zoom Level settings
   133 	TUint32							iZoomLevelMin;
   133 	TUint32							iZoomLevelMin;
   134 	TUint32							iZoomLevelMax;
   134 	TUint32							iZoomLevelMax;
   135 	TUint32							iZoomLevelDefault;
   135 	TUint32							iZoomLevelDefault;
   136 	TInt							iMaxRecentUrlsToShow;
   136 	TInt							iMaxRecentUrlsToShow;
   137     TBool                           iSearch;                // Search Feature
   137     TBool                           iSearch;                // Search Feature
   138     TBool                           iService;               // Service Feature
   138     TBool                           iService;               // Service Feature
       
   139     TBrCtlDefs::TCursorSettings     iCursorShowMode;
   139     };
   140     };
   140 
   141 
   141 /**
   142 /**
   142 *   Helper enum for MPreferencesObserver
   143 *   Helper enum for MPreferencesObserver
   143 */
   144 */
   144 enum TPreferencesEvent 
   145 enum TPreferencesEvent
   145     {
   146     {
   146 	EPreferencesActivate,   // Preferences opened
   147 	EPreferencesActivate,   // Preferences opened
   147 	EPreferencesDeactivate, // Preferences closed
   148 	EPreferencesDeactivate, // Preferences closed
   148 	EPreferencesItemChange  // Setting change has occurred
   149 	EPreferencesItemChange  // Setting change has occurred
   149     };
   150     };
   157 	public:
   158 	public:
   158 
   159 
   159         /**
   160         /**
   160         * Derived classes should implement this method, and act accordingly.
   161         * Derived classes should implement this method, and act accordingly.
   161         */
   162         */
   162 		virtual void HandlePreferencesChangeL( 
   163 		virtual void HandlePreferencesChangeL(
   163 	                            const TPreferencesEvent aEvent,
   164 	                            const TPreferencesEvent aEvent,
   164                                 TPreferencesValues& aValues,
   165                                 TPreferencesValues& aValues,
   165                                 TBrCtlDefs::TBrCtlSettings aSettingType ) = 0;
   166                                 TBrCtlDefs::TBrCtlSettings aSettingType ) = 0;
   166 	};
   167 	};
   167 	
   168 
   168 //=============================================================================
   169 //=============================================================================
   169 
   170 
   170 /**
   171 /**
   171 *  Interface for Preferences handling.
   172 *  Interface for Preferences handling.
   172 */
   173 */
   176 
   177 
   177         /**
   178         /**
   178         * To read all of the preferences in one go
   179         * To read all of the preferences in one go
   179         */
   180         */
   180         virtual const TPreferencesValues& AllPreferencesL() = 0;
   181         virtual const TPreferencesValues& AllPreferencesL() = 0;
   181         
   182 
   182         /**
   183         /**
   183         * To access embedded mode
   184         * To access embedded mode
   184         */
   185         */
   185         virtual TBool EmbeddedMode() const = 0;
   186         virtual TBool EmbeddedMode() const = 0;
   186         
   187 
   187         /**
   188         /**
   188 		* To access DefaultAccessPoint setting
   189 		* To access DefaultAccessPoint setting
   189         */
   190         */
   190 		virtual TUint DefaultAccessPoint() const = 0;
   191 		virtual TUint DefaultAccessPoint() const = 0;
   191 		
   192 
   192 	
   193 
   193 		/**
   194 		/**
   194 		* To access DefaultSnapId setting
   195 		* To access DefaultSnapId setting
   195         */
   196         */
   196 
   197 
   197 		virtual TUint DefaultSnapId() const = 0;
   198 		virtual TUint DefaultSnapId() const = 0;
   198 		
   199 
   199         /**
   200         /**
   200         * To access deafult AP details if exist setting.
   201         * To access deafult AP details if exist setting.
   201         */         
   202         */
   202         virtual CApAccessPointItem* DefaultAPDetails() = 0;		
   203         virtual CApAccessPointItem* DefaultAPDetails() = 0;
   203 		
   204 
   204 		/**
   205 		/**
   205 		* To access Associated VPN Ap if exist
   206 		* To access Associated VPN Ap if exist
   206 		*/
   207 		*/
   207 		virtual TUint AssociatedVpn() const = 0;
   208 		virtual TUint AssociatedVpn() const = 0;
   208 		
   209 
   209 		/**
   210 		/**
   210 		* Get the vpn item if it is vpn
   211 		* Get the vpn item if it is vpn
   211 		*/		
   212 		*/
   212 		virtual TBool VpnDataL( TUint aDefaultAccessPoint, CVpnApItem& aVpnItem ) = 0;
   213 		virtual TBool VpnDataL( TUint aDefaultAccessPoint, CVpnApItem& aVpnItem ) = 0;
   213 
   214 
   214         /**
   215         /**
   215 		* To access AutoLoadContent setting
   216 		* To access AutoLoadContent setting
   216         */
   217         */
   218 
   219 
   219         /**
   220         /**
   220 		* To access PageOverview setting
   221 		* To access PageOverview setting
   221         */
   222         */
   222 		virtual TBool PageOverview() const = 0;
   223 		virtual TBool PageOverview() const = 0;
   223 		
   224 
   224 		/**
   225 		/**
   225 		* To access BackList setting
   226 		* To access BackList setting
   226         */
   227         */
   227 		virtual TBool BackList() const = 0;
   228 		virtual TBool BackList() const = 0;
   228 		
   229 
   229 		/**
   230 		/**
   230 		* To access AutoRefresh setting
   231 		* To access AutoRefresh setting
   231         */
   232         */
   232 		virtual TBool AutoRefresh() const = 0;
   233 		virtual TBool AutoRefresh() const = 0;
   233 		
   234 
   234 		/*
   235 		/*
   235         * Sets the automatic updating access point of Web Feeds 
   236         * Sets the automatic updating access point of Web Feeds
   236         */
   237         */
   237         virtual void SetAutomaticUpdatingApL( TUint aSetting ) = 0;
   238         virtual void SetAutomaticUpdatingApL( TUint aSetting ) = 0;
   238 		/*
   239 		/*
   239         * Sets the automatic updating while roaming of News & Blogs 
   240         * Sets the automatic updating while roaming of News & Blogs
   240         */
   241         */
   241         virtual void SetAutomaticUpdatingWhileRoamingL( TBool aAutoUpdateRoaming ) = 0;
   242         virtual void SetAutomaticUpdatingWhileRoamingL( TBool aAutoUpdateRoaming ) = 0;
   242         
   243 
   243         /**
   244         /**
   244         * To modify user-defined URL suffix list (.com, .org, .net)
   245         * To modify user-defined URL suffix list (.com, .org, .net)
   245         */
   246         */
   246         virtual void SetURLSuffixList( HBufC* aValue ) = 0;
   247         virtual void SetURLSuffixList( HBufC* aValue ) = 0;
   247         
   248 
   248 		/**
   249 		/**
   249 		* To access user-defined URL suffix list (.com, org, .net)
   250 		* To access user-defined URL suffix list (.com, org, .net)
   250         */
   251         */
   251         virtual HBufC* URLSuffixList( ) const = 0;
   252         virtual HBufC* URLSuffixList( ) const = 0;
   252         /**
   253         /**
   253         * automatic updating access point of Web Feeds 
   254         * automatic updating access point of Web Feeds
   254         */
   255         */
   255         virtual TUint AutomaticUpdatingAP() const = 0;
   256         virtual TUint AutomaticUpdatingAP() const = 0;
   256         /**
   257         /**
   257         * automatic updating while roaming of News & Blogs 
   258         * automatic updating while roaming of News & Blogs
   258         */
   259         */
   259         virtual TBool AutomaticUpdatingWhileRoaming() const = 0;
   260         virtual TBool AutomaticUpdatingWhileRoaming() const = 0;
   260         
   261 
   261         /**
   262         /**
   262 		* To access TextWrap setting
   263 		* To access TextWrap setting
   263         @ return setting item value
   264         @ return setting item value
   264         */
   265         */
   265 		virtual TBool TextWrap() const = 0;
   266 		virtual TBool TextWrap() const = 0;
   316 
   317 
   317         /**
   318         /**
   318 		* To access Downloads Open setting
   319 		* To access Downloads Open setting
   319         */
   320         */
   320 		virtual TBool DownloadsOpen() const = 0;
   321 		virtual TBool DownloadsOpen() const = 0;
   321 		     
   322 
   322 		/**
   323 		/**
   323 		* To access user-defined homepage URL setting
   324 		* To access user-defined homepage URL setting
   324         */
   325         */
   325 		virtual TInt HomePageUrlL( TDes& aUrl, TBool aForceLoadFromSD = EFalse ) const = 0;
   326 		virtual TInt HomePageUrlL( TDes& aUrl, TBool aForceLoadFromSD = EFalse ) const = 0;
   326 
   327 
   378 
   379 
   379         /**
   380         /**
   380         * To access Form Data Saving setting
   381         * To access Form Data Saving setting
   381         */
   382         */
   382         virtual TWmlSettingsFormData FormDataSaving() const = 0;
   383         virtual TWmlSettingsFormData FormDataSaving() const = 0;
   383         
   384 
   384         /**
   385         /**
   385         * To access Access Keys setting : Enabled/Disabled
   386         * To access Access Keys setting : Enabled/Disabled
   386         */
   387         */
   387         virtual TBool AccessKeys() const = 0;
   388         virtual TBool AccessKeys() const = 0;
   388 
   389 
   389         /**
   390         /**
   390 		* To modify DefaultAccessPoint setting
   391 		* To modify DefaultAccessPoint setting
   391         */
   392         */
   392 		virtual void SetDefaultAccessPointL( TUint aDefaultAccessPoint, TUint aAssocVpn = KWmlNoDefaultAccessPoint  ) = 0;
   393 		virtual void SetDefaultAccessPointL( TUint aDefaultAccessPoint, TUint aAssocVpn = KWmlNoDefaultAccessPoint  ) = 0;
   393 		
   394 
   394 		/**
   395 		/**
   395 		* To modify DefaultSnapId setting
   396 		* To modify DefaultSnapId setting
   396         */
   397         */
   397 		virtual void SetDefaultSnapId (TUint aSnapId) = 0;		
   398 		virtual void SetDefaultSnapId (TUint aSnapId) = 0;
   398 
   399 
   399         /**
   400         /**
   400 		* To modify AutoLoadContent setting
   401 		* To modify AutoLoadContent setting
   401         */
   402         */
   402 		virtual void SetAutoLoadContentL( TInt aAutoLoadContent ) = 0;
   403 		virtual void SetAutoLoadContentL( TInt aAutoLoadContent ) = 0;
   403 
   404 
   404         /**
   405         /**
   405 		* To modify PageOverview setting
   406 		* To modify PageOverview setting
   406         */
   407         */
   407 		virtual void SetPageOverviewL( TBool aPageOverview ) = 0;
   408 		virtual void SetPageOverviewL( TBool aPageOverview ) = 0;
   408 		
   409 
   409 		/**
   410 		/**
   410 		* To modify BackList setting
   411 		* To modify BackList setting
   411         */
   412         */
   412 		virtual void SetBackListL( TBool aBackList ) = 0;
   413 		virtual void SetBackListL( TBool aBackList ) = 0;
   413 		
   414 
   414 		/**
   415 		/**
   415 		* To modify AutoRefresh setting
   416 		* To modify AutoRefresh setting
   416         */
   417         */
   417 		virtual void SetAutoRefreshL( TBool aAutoRefresh ) = 0;
   418 		virtual void SetAutoRefreshL( TBool aAutoRefresh ) = 0;
   418 
   419 
   502         */
   503         */
   503         virtual TPtrC SelfDownloadContentTypesL() = 0;
   504         virtual TPtrC SelfDownloadContentTypesL() = 0;
   504 
   505 
   505 	    /**
   506 	    /**
   506 	    * To access Default Access Point selection mode settings.
   507 	    * To access Default Access Point selection mode settings.
   507         */        
   508         */
   508         virtual TCmSettingSelectionMode AccessPointSelectionMode() = 0;
   509         virtual TCmSettingSelectionMode AccessPointSelectionMode() = 0;
   509 
   510 
   510         /**
   511         /**
   511 		* To modify Default Access Point Settings
   512 		* To modify Default Access Point Settings
   512         */
   513         */
   514 
   515 
   515         /**
   516         /**
   516         * To modify Popup Blocking Enabled settign
   517         * To modify Popup Blocking Enabled settign
   517         */
   518         */
   518         virtual void SetPopupBlockingL( TBool aPopupBlocking ) = 0;
   519         virtual void SetPopupBlockingL( TBool aPopupBlocking ) = 0;
   519         
   520 
   520         /**
   521         /**
   521         * To modify Form Data Saving setting
   522         * To modify Form Data Saving setting
   522         */
   523         */
   523         virtual void SetFormDataSavingL( TWmlSettingsFormData aFormDataSaving ) = 0;
   524         virtual void SetFormDataSavingL( TWmlSettingsFormData aFormDataSaving ) = 0;
   524 
   525 
   579 
   580 
   580         /**
   581         /**
   581         * To get value of Rotate Display setting
   582         * To get value of Rotate Display setting
   582         */
   583         */
   583         virtual TBool RotateDisplay() const = 0;
   584         virtual TBool RotateDisplay() const = 0;
   584     
   585 
   585         /** 
   586         /**
   586         * To get Toolbar On/Off value
   587         * To get Toolbar On/Off value
   587         */
   588         */
   588         virtual TInt ShowToolbarOnOff() const = 0;
   589         virtual TInt ShowToolbarOnOff() const = 0;
   589        
   590 
   590         /** 
   591         /**
   591         * To set Toolbar On/Off value
   592         * To set Toolbar On/Off value
   592         */
   593         */
   593         virtual void SetToolbarOnOffL(TInt aCommand) = 0;
   594         virtual void SetToolbarOnOffL(TInt aCommand) = 0;
   594 
   595 
   595         /** 
   596         /**
   596         * To get Toolbar Button 1 command value
   597         * To get Toolbar Button 1 command value
   597         */
   598         */
   598         virtual TInt ShowToolbarButton1Cmd() const = 0;
   599         virtual TInt ShowToolbarButton1Cmd() const = 0;
   599        
   600 
   600         /** 
   601         /**
   601         * To set Toolbar Button 1 command value
   602         * To set Toolbar Button 1 command value
   602         */
   603         */
   603         virtual void SetToolbarButton1CmdL(TInt aCommand) = 0;
   604         virtual void SetToolbarButton1CmdL(TInt aCommand) = 0;
   604 
   605 
   605         /** 
   606         /**
   606         * To get Toolbar Button 2 command value
   607         * To get Toolbar Button 2 command value
   607         */
   608         */
   608         virtual TInt ShowToolbarButton2Cmd() const = 0;
   609         virtual TInt ShowToolbarButton2Cmd() const = 0;
   609        
   610 
   610         /** 
   611         /**
   611         * To set Toolbar Button 2 command value
   612         * To set Toolbar Button 2 command value
   612         */
   613         */
   613         virtual void SetToolbarButton2CmdL(TInt aCommand) = 0;
   614         virtual void SetToolbarButton2CmdL(TInt aCommand) = 0;
   614         
   615 
   615         /** 
   616         /**
   616         * To get Toolbar Button 3 command value
   617         * To get Toolbar Button 3 command value
   617         */
   618         */
   618         virtual TInt ShowToolbarButton3Cmd() const = 0;
   619         virtual TInt ShowToolbarButton3Cmd() const = 0;
   619        
   620 
   620         /** 
   621         /**
   621         * To set Toolbar Button 3 command value
   622         * To set Toolbar Button 3 command value
   622         */
   623         */
   623         virtual void SetToolbarButton3CmdL(TInt aCommand) = 0;
   624         virtual void SetToolbarButton3CmdL(TInt aCommand) = 0;
   624 
   625 
   625         /** 
   626         /**
   626         * To get Toolbar Button 4 command value
   627         * To get Toolbar Button 4 command value
   627         */
   628         */
   628         virtual TInt ShowToolbarButton4Cmd() const = 0;
   629         virtual TInt ShowToolbarButton4Cmd() const = 0;
   629        
   630 
   630         /** 
   631         /**
   631         * To set Toolbar Button 4 command value
   632         * To set Toolbar Button 4 command value
   632         */
   633         */
   633         virtual void SetToolbarButton4CmdL(TInt aCommand) = 0;
   634         virtual void SetToolbarButton4CmdL(TInt aCommand) = 0;
   634 
   635 
   635         /** 
   636         /**
   636         * To get Toolbar Button 5 command value
   637         * To get Toolbar Button 5 command value
   637         */
   638         */
   638         virtual TInt ShowToolbarButton5Cmd() const = 0;
   639         virtual TInt ShowToolbarButton5Cmd() const = 0;
   639        
   640 
   640         /** 
   641         /**
   641         * To set Toolbar Button 5 command value
   642         * To set Toolbar Button 5 command value
   642         */
   643         */
   643         virtual void SetToolbarButton5CmdL(TInt aCommand) = 0;
   644         virtual void SetToolbarButton5CmdL(TInt aCommand) = 0;
   644 
   645 
   645         /** 
   646         /**
   646         * To get Toolbar Button 6 command value
   647         * To get Toolbar Button 6 command value
   647         */
   648         */
   648         virtual TInt ShowToolbarButton6Cmd() const = 0;
   649         virtual TInt ShowToolbarButton6Cmd() const = 0;
   649        
   650 
   650         /** 
   651         /**
   651         * To set Toolbar Button 6 command value
   652         * To set Toolbar Button 6 command value
   652         */
   653         */
   653         virtual void SetToolbarButton6CmdL(TInt aCommand) = 0;
   654         virtual void SetToolbarButton6CmdL(TInt aCommand) = 0;
   654 
   655 
   655         /** 
   656         /**
   656         * To get Toolbar Button 7 command value
   657         * To get Toolbar Button 7 command value
   657         */
   658         */
   658         virtual TInt ShowToolbarButton7Cmd() const = 0;
   659         virtual TInt ShowToolbarButton7Cmd() const = 0;
   659        
   660 
   660         /** 
   661         /**
   661         * To set Toolbar Button 7 command value
   662         * To set Toolbar Button 7 command value
   662         */
   663         */
   663         virtual void SetToolbarButton7CmdL(TInt aCommand) = 0;
   664         virtual void SetToolbarButton7CmdL(TInt aCommand) = 0;
   664 
   665 
   665         /** 
   666         /**
   666         * To get Shortcut Key 1 command value
   667         * To get Shortcut Key 1 command value
   667         */
   668         */
   668         virtual TInt ShortcutKey1Cmd() const = 0;
   669         virtual TInt ShortcutKey1Cmd() const = 0;
   669        
   670 
   670         /** 
   671         /**
   671         * To set Shortcut Key 1 command value
   672         * To set Shortcut Key 1 command value
   672         */
   673         */
   673         virtual void SetShortcutKey1CmdL(TInt aCommand) = 0;
   674         virtual void SetShortcutKey1CmdL(TInt aCommand) = 0;
   674  
   675 
   675          /** 
   676          /**
   676         * To get Shortcut Key 2 command value
   677         * To get Shortcut Key 2 command value
   677         */
   678         */
   678         virtual TInt ShortcutKey2Cmd() const = 0;
   679         virtual TInt ShortcutKey2Cmd() const = 0;
   679        
   680 
   680         /** 
   681         /**
   681         * To set Shortcut Key 2 command value
   682         * To set Shortcut Key 2 command value
   682         */
   683         */
   683         virtual void SetShortcutKey2CmdL(TInt aCommand) = 0;
   684         virtual void SetShortcutKey2CmdL(TInt aCommand) = 0;
   684 
   685 
   685         /** 
   686         /**
   686         * To get Shortcut Key 3 command value
   687         * To get Shortcut Key 3 command value
   687         */
   688         */
   688         virtual TInt ShortcutKey3Cmd() const = 0;
   689         virtual TInt ShortcutKey3Cmd() const = 0;
   689        
   690 
   690         /** 
   691         /**
   691         * To set Shortcut Key 3 command value
   692         * To set Shortcut Key 3 command value
   692         */
   693         */
   693         virtual void SetShortcutKey3CmdL(TInt aCommand) = 0;
   694         virtual void SetShortcutKey3CmdL(TInt aCommand) = 0;
   694 
   695 
   695         /** 
   696         /**
   696         * To get Shortcut Key 4 command value
   697         * To get Shortcut Key 4 command value
   697         */
   698         */
   698         virtual TInt ShortcutKey4Cmd() const = 0;
   699         virtual TInt ShortcutKey4Cmd() const = 0;
   699        
   700 
   700         /** 
   701         /**
   701         * To set Shortcut Key 4 command value
   702         * To set Shortcut Key 4 command value
   702         */
   703         */
   703         virtual void SetShortcutKey4CmdL(TInt aCommand) = 0;
   704         virtual void SetShortcutKey4CmdL(TInt aCommand) = 0;
   704 
   705 
   705         /** 
   706         /**
   706         * To get Shortcut Key 5 command value
   707         * To get Shortcut Key 5 command value
   707         */
   708         */
   708         virtual TInt ShortcutKey5Cmd() const = 0;
   709         virtual TInt ShortcutKey5Cmd() const = 0;
   709        
   710 
   710         /** 
   711         /**
   711         * To set Shortcut Key 5 command value
   712         * To set Shortcut Key 5 command value
   712         */
   713         */
   713         virtual void SetShortcutKey5CmdL(TInt aCommand) = 0;
   714         virtual void SetShortcutKey5CmdL(TInt aCommand) = 0;
   714 
   715 
   715         /** 
   716         /**
   716         * To get Shortcut Key 6 command value
   717         * To get Shortcut Key 6 command value
   717         */
   718         */
   718         virtual TInt ShortcutKey6Cmd() const = 0;
   719         virtual TInt ShortcutKey6Cmd() const = 0;
   719        
   720 
   720         /** 
   721         /**
   721         * To set Shortcut Key 6 command value
   722         * To set Shortcut Key 6 command value
   722         */
   723         */
   723         virtual void SetShortcutKey6CmdL(TInt aCommand) = 0;
   724         virtual void SetShortcutKey6CmdL(TInt aCommand) = 0;
   724 
   725 
   725         /** 
   726         /**
   726         * To get Shortcut Key 7 command value
   727         * To get Shortcut Key 7 command value
   727         */
   728         */
   728         virtual TInt ShortcutKey7Cmd() const = 0;
   729         virtual TInt ShortcutKey7Cmd() const = 0;
   729        
   730 
   730         /** 
   731         /**
   731         * To set Shortcut Key 7 command value
   732         * To set Shortcut Key 7 command value
   732         */
   733         */
   733         virtual void SetShortcutKey7CmdL(TInt aCommand) = 0;
   734         virtual void SetShortcutKey7CmdL(TInt aCommand) = 0;
   734 
   735 
   735         /** 
   736         /**
   736         * To get Shortcut Key 8 command value
   737         * To get Shortcut Key 8 command value
   737         */
   738         */
   738         virtual TInt ShortcutKey8Cmd() const = 0;
   739         virtual TInt ShortcutKey8Cmd() const = 0;
   739        
   740 
   740         /** 
   741         /**
   741         * To set Shortcut Key 8 command value
   742         * To set Shortcut Key 8 command value
   742         */
   743         */
   743         virtual void SetShortcutKey8CmdL(TInt aCommand) = 0;
   744         virtual void SetShortcutKey8CmdL(TInt aCommand) = 0;
   744 
   745 
   745         /** 
   746         /**
   746         * To get Shortcut Key 9 command value
   747         * To get Shortcut Key 9 command value
   747         */
   748         */
   748         virtual TInt ShortcutKey9Cmd() const = 0;
   749         virtual TInt ShortcutKey9Cmd() const = 0;
   749        
   750 
   750         /** 
   751         /**
   751         * To set Shortcut Key 9 command value
   752         * To set Shortcut Key 9 command value
   752         */
   753         */
   753         virtual void SetShortcutKey9CmdL(TInt aCommand) = 0;
   754         virtual void SetShortcutKey9CmdL(TInt aCommand) = 0;
   754 
   755 
   755         /** 
   756         /**
   756         * To get Shortcut Key 0 command value
   757         * To get Shortcut Key 0 command value
   757         */
   758         */
   758         virtual TInt ShortcutKey0Cmd() const = 0;
   759         virtual TInt ShortcutKey0Cmd() const = 0;
   759        
   760 
   760         /** 
   761         /**
   761         * To set Shortcut Key 0 command value
   762         * To set Shortcut Key 0 command value
   762         */
   763         */
   763         virtual void SetShortcutKey0CmdL(TInt aCommand) = 0;
   764         virtual void SetShortcutKey0CmdL(TInt aCommand) = 0;
   764         
   765 
   765         /** 
   766         /**
   766         * To get Shortcut Key Star command value
   767         * To get Shortcut Key Star command value
   767         */
   768         */
   768         virtual TInt ShortcutKeyStarCmd() const = 0;
   769         virtual TInt ShortcutKeyStarCmd() const = 0;
   769 
   770 
   770         /** 
   771         /**
   771         * To set Shortcut Key Star command value
   772         * To set Shortcut Key Star command value
   772         */
   773         */
   773         virtual void SetShortcutKeyStarCmdL(TInt aCommand) = 0;
   774         virtual void SetShortcutKeyStarCmdL(TInt aCommand) = 0;
   774 
   775 
   775         /** 
   776         /**
   776         * To get Shortcut Key Hash command value
   777         * To get Shortcut Key Hash command value
   777         */
   778         */
   778         virtual TInt ShortcutKeyHashCmd() const = 0;
   779         virtual TInt ShortcutKeyHashCmd() const = 0;
   779             
   780 
   780         /** 
   781         /**
   781         * To set Shortcut Key Hash command value
   782         * To set Shortcut Key Hash command value
   782         */
   783         */
   783         virtual void SetShortcutKeyHashCmdL(TInt aCommand) = 0;
   784         virtual void SetShortcutKeyHashCmdL(TInt aCommand) = 0;
   784         
   785 
   785         /** 
   786         /**
   786         * To get Shortcut Key for Qwerty command value
   787         * To get Shortcut Key for Qwerty command value
   787         */
   788         */
   788         virtual TInt ShortcutKeysForQwerty() const = 0;
   789         virtual TInt ShortcutKeysForQwerty() const = 0;
   789 
   790 
   790         /** 
   791         /**
   791         * Zoom Level minimum (percentage) value
   792         * Zoom Level minimum (percentage) value
   792         */
   793         */
   793         virtual inline TUint32 ZoomLevelMinimum() const = 0;
   794         virtual inline TUint32 ZoomLevelMinimum() const = 0;
   794 
   795 
   795         /** 
   796         /**
   796         * Zoom Level maximum (percentage) value
   797         * Zoom Level maximum (percentage) value
   797         */
   798         */
   798         virtual inline TUint32 ZoomLevelMaximum() const = 0;
   799         virtual inline TUint32 ZoomLevelMaximum() const = 0;
   799 
   800 
   800         /** 
   801         /**
   801         * Zoom Level default (percentage) value
   802         * Zoom Level default (percentage) value
   802         */
   803         */
   803         virtual inline TUint32 ZoomLevelDefault() const = 0;
   804         virtual inline TUint32 ZoomLevelDefault() const = 0;
   804         
   805 
   805    		/**
   806    		/**
   806 		* Maximum Recent URLs to show
   807 		* Maximum Recent URLs to show
   807         */
   808         */
   808         virtual TInt MaxRecentUrls() const = 0;
   809         virtual TInt MaxRecentUrls() const = 0;
   809 
   810 
   810         /**
   811         /**
   811         * Search Feature Enabled or Disabled. 
   812         * Search Feature Enabled or Disabled.
   812         */
   813         */
   813         virtual inline TBool SearchFeature() const = 0;
   814         virtual inline TBool SearchFeature() const = 0;
   814         
   815 
   815         /**
   816         /**
   816         * Service Feature Enabled or Disabled. 
   817         * Service Feature Enabled or Disabled.
   817         */
   818         */
   818         virtual inline TBool ServiceFeature() const = 0;
   819         virtual inline TBool ServiceFeature() const = 0;
   819                 
   820 
   820         /**
   821         /**
   821         * To access an int value key in ini file
   822         * To access an int value key in ini file
   822         * @param aKey the ini file key to read
   823         * @param aKey the ini file key to read
   823         * @return the value of the given key
   824         * @return the value of the given key
   824         */
   825         */
   829         * @param aKey the ini file key to read
   830         * @param aKey the ini file key to read
   830         * @return the value of the given key
   831         * @return the value of the given key
   831         */
   832         */
   832         virtual TInt GetStringValueL ( TUint32 aKey, TInt aMaxBufSize, TDes& aBuf ) const = 0;
   833         virtual TInt GetStringValueL ( TUint32 aKey, TInt aMaxBufSize, TDes& aBuf ) const = 0;
   833 
   834 
   834         
   835         /**  
       
   836 	    * Cursor show mode  
       
   837 	    */  
       
   838         virtual TBrCtlDefs::TCursorSettings CursorShowMode() const = 0;  
       
   839 
       
   840 
   835     public:     // observer support
   841     public:     // observer support
   836 
   842 
   837         /**
   843         /**
   838         * Adds an observer to be notified about changes. Derived classes MUST
   844         * Adds an observer to be notified about changes. Derived classes MUST
   839         * notify all observers when preferences changed!
   845         * notify all observers when preferences changed!
   849 
   855 
   850 		/**
   856 		/**
   851 		* To flush share data key settings
   857 		* To flush share data key settings
   852 		*/
   858 		*/
   853 		virtual void FlushSD() = 0;
   859 		virtual void FlushSD() = 0;
   854 		
   860 
   855 		virtual void NotifyObserversL( TPreferencesEvent aEvent,
   861 		virtual void NotifyObserversL( TPreferencesEvent aEvent,
   856                                     TBrCtlDefs::TBrCtlSettings aSettingType ) = 0;
   862                                     TBrCtlDefs::TBrCtlSettings aSettingType ) = 0;
   857     };
   863     };
   858 
   864 
   859 #endif
   865 #endif
   860             
   866 
   861 // End of File
   867 // End of File