web_plat/launcher_api/inc/BrowserOverriddenSettings.h
changeset 0 dd21522fd290
child 17 c8a366e56285
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web_plat/launcher_api/inc/BrowserOverriddenSettings.h	Mon Mar 30 12:54:55 2009 +0300
@@ -0,0 +1,111 @@
+/*
+* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  enables other applications to launch browser in embedded mode
+*
+*/
+
+
+#ifndef BROWSER_OVERRIDDEN_SETTINGS_H
+#define BROWSER_OVERRIDDEN_SETTINGS_H
+
+//  INCLUDES
+#include <e32std.h>
+#include <e32def.h>
+
+// DATA TYPES
+typedef enum
+{
+    EBrowserOverSettingsSmallScreen = 0,
+    EBrowserOverSettingsAutoLoadImages,
+    EBrowserOverSettingsFontSize,
+    EBrowserOverSettingsFullScreen,
+    EBrowserOverSettingsCustomAp,
+    EBrowserOverSettingsContextId,
+    EBrowserOverSettingsUndefinied = KMaxTUint16
+} TBrowserOverSettings;
+
+typedef enum 
+{
+  EBrowserOverFontSizeLevelAllSmall = 0,
+  EBrowserOverFontSizeLevelSmaller,
+  EBrowserOverFontSizeLevelNormal,
+  EBrowserOverFontSizeLevelLarger,    
+  EBrowserOverFontSizeLevelAllLarge,
+  EBrowserOverFontSizeLevelUndefined = KMaxTUint16
+} TBrowserOverFontSizeLevel;
+
+typedef enum 
+{
+  EBrowserOverFullScreenValueNormal = 0,
+  EBrowserOverFullScreenValueSoftKeysOnly,
+  EBrowserOverFullScreenValueFullScreen,
+  EBrowserOverFullScreenValueUndefined = KMaxTUint16
+} TBrowserOverFullScreenValue;
+
+typedef enum
+{
+  EBrowserContextIdNormal = 0,
+  EBrowserContextIdFeeds,
+  EBrowserContextIdUndefined = KMaxTUint16
+} TBrowserOverContextId;
+
+// CLASS DECLARATION
+
+/**
+*  This class stores values to pass to the browser in embedded mode
+*
+*/
+class TBrowserOverriddenSettings
+{
+public :// Constructors and destructor 
+   inline TBrowserOverriddenSettings();
+
+public: // New functions
+   /**
+   * SetBrowserSetting sets the the settings which will be overriden
+   * @param aBrowserSetting describes which type of setting to set
+   * @param aValue the value to set
+   * @return void
+   */
+   inline void SetBrowserSetting(TBrowserOverSettings aBrowserSetting, TUint aValue);
+   
+   /**
+   * GetBrowserSetting gets the value of the setting
+   * @param aBrowserSetting describes which type of setting to get
+   * @return the value of the setting
+   */
+   inline TUint GetBrowserSetting(TBrowserOverSettings aBrowserSetting);
+private:// Data
+   //stores the value for the small screen setting can be 0 or 1
+   //if not set then KMaxUint
+   TUint iSmallScreen;
+   //stores the value for the auto load image setting can be 0 or 1
+   //if not set then KMaxUint
+   TUint iAutoLoadImage;
+   //stores the value for the font size setting can be 0,1,2,3 or 4
+   TUint iFontSize;
+   //stores the value for the small screen setting can be 0 or 1
+   TUint iFullScreen;
+   // Custom access point provided by the operator. If specified, contains an id of a read only
+   // access point what is then set as default  and it cannot be changed manually. If not 
+   // defined, operator menu works as before.
+   // from operator menu( 0 - not specified, otherwise contains the access point id)
+   TUint iCustomAp;
+   // Allow the contextId of the call to be passed as a parameter
+   TUint iContextId;   
+};
+
+#include <BrowserOverriddenSettings.inl>
+
+#endif  //BROWSER_OVERRIDDEN_SETTINGS_H
\ No newline at end of file