|
1 /* |
|
2 * Copyright (c) 2007 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: Keeps track of settings |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __SETTINGSCONTAINER_H__ |
|
20 #define __SETTINGSCONTAINER_H__ |
|
21 |
|
22 #include <e32base.h> |
|
23 #include "brctldefs.h" |
|
24 |
|
25 class WebView; |
|
26 class HistoryControllerInterface; |
|
27 |
|
28 class SettingsContainer |
|
29 { |
|
30 public: |
|
31 SettingsContainer(WebView* view, HistoryControllerInterface* historyProvider); |
|
32 unsigned int brctlSetting(TBrCtlDefs::TBrCtlSettings setting); |
|
33 void setBrctlSetting(TBrCtlDefs::TBrCtlSettings setting, unsigned int value); |
|
34 void setTabbedNavigation(bool on_) { m_tabbedNaviOn = on_; } |
|
35 bool getTabbedNavigation() const { return m_tabbedNaviOn; } |
|
36 |
|
37 private: |
|
38 void updatePageSetting(TBrCtlDefs::TBrCtlSettings setting); |
|
39 void updateHttpSetting(TBrCtlDefs::TBrCtlSettings setting); |
|
40 void updateHistorySetting(TBrCtlDefs::TBrCtlSettings setting); |
|
41 void updateDocumentLoaderSettings(TBrCtlDefs::TBrCtlSettings setting); |
|
42 void updateZoomSettings(TBrCtlDefs::TBrCtlSettings setting, unsigned int value ); |
|
43 |
|
44 |
|
45 private: |
|
46 unsigned int brctlSettings[TBrCtlDefs::ESettingsMaxEnum]; |
|
47 WebView* m_webView; |
|
48 HistoryControllerInterface* m_historyController; |
|
49 bool m_tabbedNaviOn; |
|
50 }; |
|
51 |
|
52 #endif // __WEBDOCUMENTLOADER_H__ |
|
53 |
|
54 // END OF FILE |