|
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 CPOSTP120_H |
|
21 #define CPOSTP120_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <EPos_CPosLmAreaCriteria.h> |
|
25 #include "FT_CLandmarkTestProcedureBase.h" |
|
26 |
|
27 // CLASS DECLARATION |
|
28 |
|
29 /** |
|
30 * Test procedure 23 |
|
31 */ |
|
32 class CPosTp120 : public CLandmarkTestProcedureBase |
|
33 { |
|
34 public: // Constructors and destructor |
|
35 |
|
36 /** |
|
37 * C++ default constructor. |
|
38 */ |
|
39 |
|
40 CPosTp120(TInt tpno, CStifLogger* aLog) : CLandmarkTestProcedureBase(tpno, aLog) {}; |
|
41 /** |
|
42 * Destructor. |
|
43 */ |
|
44 ~CPosTp120() {}; |
|
45 |
|
46 public: // Functions from base classes |
|
47 |
|
48 |
|
49 /** |
|
50 * From CLandmarkTestProcedureBase |
|
51 * Runs the test in the module |
|
52 */ |
|
53 void StartL(); |
|
54 |
|
55 void CloseTest(); |
|
56 |
|
57 private: |
|
58 |
|
59 CPosLmAreaCriteria* AreaCriteriaL(const TReal64 &aSouthLat, |
|
60 const TReal64 &aNorthLat, |
|
61 const TReal64 &aWestLong, |
|
62 const TReal64 &aEastLong); |
|
63 |
|
64 |
|
65 void CheckDatabasesL( |
|
66 CDesCArray* aExpectedLmUris, |
|
67 TUint aExpectedMaxMatches = KPosLmMaxNumOfMatchesUnlimited |
|
68 ); |
|
69 |
|
70 void GetLmIdsL( |
|
71 TInt aDbId, |
|
72 RArray<TPosLmItemId> aSearchResults, |
|
73 RArray<TPosLmItemId>& aLmIdForADb |
|
74 ); |
|
75 |
|
76 void CheckEqualsLmsL( |
|
77 TPosLmItemId aSource, |
|
78 TPosLmItemId aTarget |
|
79 ); |
|
80 |
|
81 void SearchL( |
|
82 const RPointerArray<CAreaSearchResult>& aSearchResults, |
|
83 TExecutionMode aExecutionMode); |
|
84 |
|
85 void SearchWithSortOrderL(const RPointerArray<CAreaSearchResult>& aSearchResults); |
|
86 |
|
87 void OnTheFlySearchL(); |
|
88 |
|
89 void SearchAndDeleteL(); |
|
90 |
|
91 void SearchAndRenameL(); |
|
92 |
|
93 void SearchAndCancelL(const TBool& aInCallback=EFalse); |
|
94 |
|
95 void SearchWithMaximumL(); |
|
96 |
|
97 CDesCArray* CreateDatabasesL( |
|
98 TInt aNrOfLmDbs, |
|
99 TInt aLmPerDb, |
|
100 TInt aLastId, |
|
101 TBool aDebug = EFalse |
|
102 ); |
|
103 |
|
104 private: |
|
105 |
|
106 CDesCArray* iDbArray; |
|
107 |
|
108 }; |
|
109 |
|
110 #endif // CPOSTP120_H |
|
111 |
|
112 // End of File |