|
1 /* |
|
2 * Copyright (c) 2002-2006 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 "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: Handles browser settings in provisioning. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CWPWAPBROWSERADAPTER_H |
|
20 #define CWPWAPBROWSERADAPTER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "CWPWAPAdapterBase.h" |
|
24 |
|
25 #include <FavouritesSession.h> |
|
26 #include <FavouritesDb.h> |
|
27 |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CWPCharacteristic; |
|
31 class CBookmarkDb; |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * CWPWAPBrowserAdapter handles browser settings. |
|
36 * |
|
37 * @lib WPWAPAdapter |
|
38 * @since 2.0 |
|
39 */ |
|
40 class CWPWAPBrowserAdapter : public CWPWAPAdapterBase |
|
41 { |
|
42 public: // Constructors and destructor |
|
43 |
|
44 /** |
|
45 * Two-phased constructor. |
|
46 * @return CWPWAPBrowserAdapter instance |
|
47 */ |
|
48 static CWPWAPBrowserAdapter* NewL(); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 ~CWPWAPBrowserAdapter(); |
|
54 |
|
55 public: // from CWPWAPAdapterBase |
|
56 |
|
57 void ApplicationL( CWPCharacteristic& aCharacteristic ); |
|
58 void DeleteL( const TDesC8& aSaveData ); |
|
59 |
|
60 private: // New functions |
|
61 /** |
|
62 * C++ default constructor. |
|
63 */ |
|
64 CWPWAPBrowserAdapter(); |
|
65 |
|
66 /** |
|
67 * By default Symbian 2nd phase constructor is private. |
|
68 */ |
|
69 void ConstructL(); |
|
70 |
|
71 /** |
|
72 * Create the bookmarks db. |
|
73 */ |
|
74 void CreateDbL(); |
|
75 |
|
76 private: // Data |
|
77 // Title for browser items. Owns. |
|
78 HBufC* iTitle; |
|
79 |
|
80 // Title for bookmarks. Owns. |
|
81 HBufC* iBookmarkTitle; |
|
82 |
|
83 // Default name for browser items. Owns. |
|
84 HBufC* iDefaultName; |
|
85 |
|
86 // Default name for bookmarks. Owns. |
|
87 HBufC* iDefaultBookmarkName; |
|
88 |
|
89 // ETrue if one browser application has been processed. |
|
90 TBool iProcessed; |
|
91 |
|
92 // Favourites database. Owns. |
|
93 CBookmarkDb* iBookmarkDb; |
|
94 |
|
95 RFavouritesSession iSession; |
|
96 |
|
97 RFavouritesDb iFavouritesDb; |
|
98 }; |
|
99 |
|
100 #endif // CWPWAPBROWSERADAPTER_H |
|
101 |
|
102 // End of File |