|
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 CPOSTp21_H |
|
21 #define CPOSTp21_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "FT_CLandmarkTestProcedureBase.h" |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * Test procedure 21 |
|
30 */ |
|
31 class CPosTp21 : public CLandmarkTestProcedureBase |
|
32 { |
|
33 public: // Constructors and destructor |
|
34 |
|
35 /** |
|
36 * C++ default constructor. |
|
37 */ |
|
38 //CPosTp21() : CLandmarkTestProcedureBase(21) {}; |
|
39 CPosTp21(TInt tpno, CStifLogger* aLog) : CLandmarkTestProcedureBase(tpno, aLog) {}; |
|
40 /** |
|
41 * Destructor. |
|
42 */ |
|
43 ~CPosTp21() {}; |
|
44 |
|
45 public: // Functions from base classes |
|
46 |
|
47 /** |
|
48 * From CUtfwTestBase |
|
49 * Retrieves the test module name |
|
50 * @param aName The name of the test module. |
|
51 */ |
|
52 /* void GetName( |
|
53 TDes& aName |
|
54 ) const; |
|
55 */ |
|
56 /** |
|
57 * From CUtfwTestBase |
|
58 */ |
|
59 void CloseTest(); |
|
60 |
|
61 /** |
|
62 * From CLandmarkTestProcedureBase |
|
63 * Runs the test in the module |
|
64 */ |
|
65 void StartL(); |
|
66 |
|
67 private: |
|
68 |
|
69 void SearchL( |
|
70 const RPointerArray<CCategoryLandmarkSearchResult>& aSearchResults, |
|
71 TBool aNameOrId=EFalse, |
|
72 TExecutionMode aExecutionMode = ESynchronous); |
|
73 |
|
74 void SearchNonExistingL(TExecutionMode aExecutionMode); |
|
75 |
|
76 void SearchForLandmarksInGlobalCategoriesL(TExecutionMode aExecutionMode); |
|
77 |
|
78 void AddLandmarksToGlobalCategoriesL(); |
|
79 |
|
80 void SearchWithSortOrderL(); |
|
81 |
|
82 void SearchAndCancelL(const TBool& aInCallback=EFalse); |
|
83 |
|
84 void TestSearchPatternLengthL(); |
|
85 |
|
86 // Added for BC testing |
|
87 |
|
88 void AddCategoriesL(); |
|
89 |
|
90 void AddLandmarksL(); |
|
91 |
|
92 // Added for testing (Should be made common metod in BaseClass ??) |
|
93 void MakeEmptyLmDatabaseL( CPosLandmarkDatabase& aLdb, |
|
94 CPosLmCategoryManager& aCatMgr ); |
|
95 |
|
96 private: |
|
97 TUint iRestaurantId1; |
|
98 TUint iRestaurantId2; |
|
99 TUint iGasStationId1; |
|
100 TUint iGasStationId2; |
|
101 TUint iGarageId1; |
|
102 |
|
103 // Added for BC testing |
|
104 CPosLmCategoryManager* iCategoryManager; |
|
105 RPointerArray<CPosLandmarkCategory> iCategories; |
|
106 //RArray<CPosLandmarkCategory> iReferencedCategories; |
|
107 RPointerArray<CPosLandmarkCategory> iReferencedCategories; |
|
108 RPointerArray<CPosLandmark> iLandmarks; |
|
109 |
|
110 }; |
|
111 |
|
112 #endif // CPOSTp21_H |
|
113 |
|
114 // End of File |