|
1 /* |
|
2 * Copyright (c) 2004 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 - This class provides functionality of finding out new categories |
|
15 * that are received from a landmarks package, which do not exists in |
|
16 * the landmarks database. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 #ifndef CLMKPKGFINDNEWCATOP_H |
|
28 #define CLMKPKGFINDNEWCATOP_H |
|
29 |
|
30 // INCLUDES |
|
31 #include "MLmkAOOperationObserver.h" |
|
32 #include <EPos_CPosLmOperation.h> |
|
33 #include <EPos_Landmarks.h> |
|
34 #include "CLmkParser.h" |
|
35 #include "CLmkSaveLandmarkUtils.h" |
|
36 |
|
37 // CLASS DECLARATION |
|
38 |
|
39 /** |
|
40 * CLmkPkgFindNewCatOp class. |
|
41 * This class provides functionality of finding out new categories |
|
42 * that are received from a landmarks package, which do not exists in |
|
43 * the landmarks database. |
|
44 */ |
|
45 class CLmkPkgFindNewCatOp |
|
46 : public CPosLmOperation |
|
47 { |
|
48 public: // Constructors and destructor |
|
49 /** |
|
50 * Creates CLmkPkgFindNewCatOp |
|
51 * @param aNoOfNewCategories |
|
52 * @param aNewCategories |
|
53 * @param aNewCategoryFound |
|
54 * @param aSaveLmUtils |
|
55 * @return newly instantiated object |
|
56 */ |
|
57 static CLmkPkgFindNewCatOp* NewL( |
|
58 TInt& aNoOfNewCategories, |
|
59 RArray<TCategoryName>& aNewCategories, |
|
60 TCategoryName& aNewCategoryFound, |
|
61 CLmkSaveLandmarkUtils*aSaveLmUtils ) ; |
|
62 |
|
63 /** |
|
64 * Destructor. |
|
65 */ |
|
66 ~CLmkPkgFindNewCatOp(); |
|
67 |
|
68 public: // From CPosLmOperation |
|
69 void NextStep( TRequestStatus& aStatus, TReal32& aProgress ); |
|
70 void ExecuteL(); |
|
71 |
|
72 protected: // From MLmkAOOperationObserver |
|
73 void HandleOperationL( TOperationTypes aType, |
|
74 TReal32 aProgress, |
|
75 TInt aStatus ); |
|
76 |
|
77 protected: // Constructors and destructor |
|
78 /** |
|
79 * C++ constructor. |
|
80 * @param aNoOfNewCategories |
|
81 * @param aNewCategories |
|
82 * @param aNewCategoryFound |
|
83 * @param aSaveLmUtils |
|
84 * @return newly instantiated object |
|
85 */ |
|
86 CLmkPkgFindNewCatOp(TInt& aNoOfNewCategories, |
|
87 RArray<TCategoryName>& aNewCategories, |
|
88 TCategoryName& aNewCategoryFound, |
|
89 CLmkSaveLandmarkUtils*aSaveLmUtils ) ; |
|
90 |
|
91 /** |
|
92 * By default Symbian 2nd phase constructor is private. |
|
93 * @param aLandmarkIdArray |
|
94 * @param aCategoryIdArray |
|
95 */ |
|
96 void ConstructL(); |
|
97 |
|
98 private: // Data |
|
99 |
|
100 ///Ref: |
|
101 TRequestStatus* iStatus; |
|
102 |
|
103 ///Ref: |
|
104 TReal32* iProgress; |
|
105 |
|
106 //Ref |
|
107 CLmkSaveLandmarkUtils* iSaveLmUtils; |
|
108 |
|
109 |
|
110 TBool iIsFirstStep; |
|
111 |
|
112 //Ref |
|
113 TCategoryName& iNewCategoryFound; |
|
114 |
|
115 //Ref |
|
116 RArray<TCategoryName>& iNewCategories; |
|
117 |
|
118 //Ref |
|
119 TInt& iNoOfNewCategories; |
|
120 }; |
|
121 |
|
122 #endif // CLmkPkgFindNewCatOp_H |
|
123 |
|
124 // End of File |