|
1 /* |
|
2 * Copyright (c) 2002 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: LandmarksUi Content File - List provider factory |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 #ifndef LMKLISTPROVIDERFACTORY_H |
|
26 #define LMKLISTPROVIDERFACTORY_H |
|
27 |
|
28 // INCLUDES |
|
29 #include "landmarks.hrh" |
|
30 #include <e32base.h> |
|
31 |
|
32 // FORWARD DECLARATIONS |
|
33 //class CLmkLmItemListProvider; |
|
34 class CLmkListProviderBase; |
|
35 class CPosLandmarkDatabase; |
|
36 class CPosLmSearchCriteria; |
|
37 class CLmkParser; |
|
38 |
|
39 //ENUMERATION |
|
40 enum TLmkProviderType |
|
41 { |
|
42 ELmkNotShowEmptyCategories, |
|
43 ELmkShowEmptyCategories, |
|
44 ELmkShowExtendedCategories |
|
45 }; |
|
46 |
|
47 // CLASS DECLARATION |
|
48 |
|
49 /** |
|
50 * LmkListProviderFactory class |
|
51 */ |
|
52 |
|
53 class LmkListProviderFactory |
|
54 { |
|
55 public: // New functions |
|
56 /** |
|
57 * Create LmkListProviderFactory object |
|
58 * @param aDb |
|
59 * @param aType |
|
60 * @param aShowType has meaning only if |
|
61 * aType == ECategorySelector |
|
62 * @return newly instantiated object |
|
63 */ |
|
64 IMPORT_C static CLmkListProviderBase* CreateProviderL( |
|
65 CPosLandmarkDatabase& aDb, |
|
66 TLmkSelectorType aType, |
|
67 TLmkProviderType aShowType = |
|
68 ELmkNotShowEmptyCategories ); |
|
69 |
|
70 /** |
|
71 * Creates filtered lm provider. |
|
72 * @param aDb |
|
73 * @param aCriteria |
|
74 * @return newly instantiated object |
|
75 */ |
|
76 IMPORT_C static CLmkListProviderBase* CreateProviderL( |
|
77 CPosLandmarkDatabase& aDb, |
|
78 CPosLmSearchCriteria& aCriteria ); |
|
79 |
|
80 /** |
|
81 * Creates parsered lm provider. |
|
82 * @param aParser |
|
83 * @return newly instantiated object |
|
84 */ |
|
85 IMPORT_C static CLmkListProviderBase* CreateProviderL( |
|
86 CLmkParser& aParser ); |
|
87 }; |
|
88 |
|
89 #endif // LMKLISTPROVIDERFACTORY_H |
|
90 |
|
91 // End of File |