|
1 /* |
|
2 * Copyright (c) 2005 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 * ?description_line |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef CPOSTP10_H |
|
21 #define CPOSTP10_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <EPos_CPosLMCategoryManager.h> |
|
25 #include "FT_CLandmarkTestProcedureBase.h" |
|
26 |
|
27 |
|
28 |
|
29 /** |
|
30 * Test procedure 10 |
|
31 */ |
|
32 class CPosTp10 :public CLandmarkTestProcedureBase |
|
33 { |
|
34 public: // Constructors and destructor |
|
35 |
|
36 /** |
|
37 * C++ default constructor. |
|
38 */ |
|
39 |
|
40 CPosTp10(TInt tpno, CStifLogger* aLog) : CLandmarkTestProcedureBase(tpno, aLog) {}; |
|
41 |
|
42 /** |
|
43 * Destructor. |
|
44 */ |
|
45 ~CPosTp10() {}; |
|
46 |
|
47 public: // Functions from base classes |
|
48 |
|
49 |
|
50 /** |
|
51 * From CLandmarkTestProcedureBase |
|
52 * Runs the test in the module |
|
53 */ |
|
54 void StartL(); |
|
55 /** |
|
56 * From CLandmarkTestProcedureBase |
|
57 * Cleans up after a test. |
|
58 * Always called, even if the test leaves. |
|
59 */ |
|
60 void CloseTest(); |
|
61 |
|
62 private: |
|
63 void AddCategoriesL(); |
|
64 |
|
65 void ReadCategoriesL(); |
|
66 |
|
67 void UpdateCategoriesL(); |
|
68 |
|
69 void AddLandmarksL(); |
|
70 |
|
71 void AddCategoriesToLandmarksL(); |
|
72 |
|
73 void AddCategoriesToLandmarksAsyncL(); |
|
74 |
|
75 void AddCategoriesToLandmarksUsingWaitForReqL(); |
|
76 |
|
77 void AddCategoriesToLandmarksAsyncAndCancelL(const TBool& aInCallback=EFalse); |
|
78 |
|
79 void CheckLandmarksL(); |
|
80 |
|
81 void CheckRemovedL(const TInt startIndex, const TInt stopIndex); |
|
82 |
|
83 void RemoveCategoryL(); |
|
84 |
|
85 void RemoveCategoryAsyncL(); |
|
86 |
|
87 void RemoveCategoryUsingWaitForReqL(); |
|
88 |
|
89 void RemoveCategoryAsyncAndCancelL(const TBool& aInCallback=EFalse); |
|
90 |
|
91 void RemoveSetOfCategoriesL(); |
|
92 |
|
93 void RemoveSetOfCategoriesAsyncL(); |
|
94 |
|
95 void RemoveSetOfCategoriesUsingWaitForReqL(); |
|
96 |
|
97 void RemoveSetOfCategoriesAsyncAndCancelL(const TBool& aInCallback=EFalse); |
|
98 |
|
99 void RemoveCategoryFromSetOfLandmarksL(); |
|
100 |
|
101 void RemoveCategoryFromSetOfLandmarksAsyncL(); |
|
102 |
|
103 void RemoveCategoryFromSetOfLandmarksUsingWaitForReqL(); |
|
104 |
|
105 void RemoveCategoryFromSetOfLandmarksAsyncAndCancelL(const TBool& aInCallback=EFalse); |
|
106 |
|
107 void RemovedFromLandmarksInternalL(TPosLmItemId aCategoryId); |
|
108 |
|
109 void ReadCategoryL(TPosLmItemId aCategoryId); |
|
110 |
|
111 void AddCategoriesToLandmarksAsyncErrCheckL(); |
|
112 |
|
113 /** |
|
114 * Test LMREQ121 |
|
115 */ |
|
116 void TestMissingCategories1L(); |
|
117 |
|
118 /** |
|
119 * Test LMREQ121 |
|
120 */ |
|
121 void TestMissingCategories2L(); |
|
122 |
|
123 void CompareTwoCategoriesL(TInt aIndex); |
|
124 |
|
125 CPosLandmarkDatabase* BackupTp10DbFileL(); |
|
126 |
|
127 CPosLandmarkDatabase* RestoreTp10DbFileL(); |
|
128 |
|
129 |
|
130 private: // data |
|
131 |
|
132 CPosLmCategoryManager* iCategoryManager; |
|
133 RPointerArray<CPosLandmarkCategory> iCategories; |
|
134 RPointerArray<CPosLandmark> iLandmarks; |
|
135 |
|
136 }; |
|
137 |
|
138 #endif // CPOSTP1_H |
|
139 |
|
140 // End of File |