|
1 /* |
|
2 * Copyright (c) 2010 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 #ifndef __CREATORBROWSER_H__ |
|
23 #define __CREATORBROWSER_H__ |
|
24 |
|
25 #include "engine.h" |
|
26 #include "creator_modulebase.h" |
|
27 |
|
28 #include <e32base.h> |
|
29 //#include <FavouritesItem.h> |
|
30 //#include <FavouritesDb.h> |
|
31 //#include <FavouritesFile.h> |
|
32 |
|
33 |
|
34 |
|
35 class CCreatorEngine; |
|
36 class CBrowserParameters; |
|
37 |
|
38 |
|
39 class CCreatorBrowser : public CCreatorModuleBase |
|
40 { |
|
41 public: |
|
42 static CCreatorBrowser* NewL(CCreatorEngine* aEngine); |
|
43 static CCreatorBrowser* NewLC(CCreatorEngine* aEngine); |
|
44 ~CCreatorBrowser(); |
|
45 |
|
46 private: |
|
47 CCreatorBrowser(); |
|
48 void ConstructL(CCreatorEngine* aEngine); // from MCreatorModuleBase |
|
49 |
|
50 public: |
|
51 TBool AskDataFromUserL( TInt aCommand ); // from MCreatorModuleBase |
|
52 |
|
53 TInt CreateBookmarkEntryL(CBrowserParameters *aParameters); |
|
54 TInt CreateBookmarkFolderEntryL(CBrowserParameters *aParameters); |
|
55 TInt CreateSavedDeckEntryL(CBrowserParameters *aParameters); |
|
56 TInt CreateSavedDeckFolderEntryL(CBrowserParameters *aParameters); |
|
57 |
|
58 void DeleteAllL(); |
|
59 void DeleteAllCreatedByCreatorL(); |
|
60 |
|
61 void DeleteAllBookmarksL(); |
|
62 void DeleteAllBookmarksCreatedByCreatorL(); |
|
63 void DeleteAllBookmarkFoldersL(); |
|
64 void DeleteAllBookmarkFoldersCreatedByCreatorL(); |
|
65 void DeleteAllSavedPagesL(); |
|
66 void DeleteAllSavedPagesCreatedByCreatorL(); |
|
67 void DeleteAllSavedPageFoldersL(); |
|
68 void DeleteAllSavedPageFoldersCreatedByCreatorL(); |
|
69 |
|
70 private: |
|
71 void DeleteAllItemsL( const TDesC& aDbName, CFavouritesItem::TType aTypeFilter, TBool aOnlyCreatedWithCreator, RArray<TInt>& aEntryIds, const TUid aDictUid ); |
|
72 |
|
73 |
|
74 |
|
75 private: |
|
76 CBrowserParameters* iParameters; |
|
77 RArray<TInt> iBmEntryIds; |
|
78 RArray<TInt> iBmFEntryIds; |
|
79 RArray<TInt> iSpEntryIds; |
|
80 RArray<TInt> iSpFEntryIds; |
|
81 public: |
|
82 }; |
|
83 |
|
84 |
|
85 class CBrowserParameters : public CCreatorModuleBaseParameters |
|
86 { |
|
87 public: |
|
88 HBufC* iBookmarkName; |
|
89 HBufC* iBookmarkAddress; |
|
90 TFavouritesWapAp iBookmarkAccessPoint; |
|
91 HBufC* iBookmarkUsername; |
|
92 HBufC* iBookmarkPassword; |
|
93 |
|
94 HBufC* iBookmarkFolderName; |
|
95 |
|
96 HBufC* iSavedDeckLinkName; |
|
97 HBufC* iSavedDeckLocalAddress; |
|
98 |
|
99 HBufC* iSavedDeckFolderName; |
|
100 |
|
101 public: |
|
102 CBrowserParameters(); |
|
103 ~CBrowserParameters(); |
|
104 }; |
|
105 |
|
106 |
|
107 |
|
108 #endif // __CREATORBROWSER_H__ |