|
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: |
|
15 * ?description_line |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef CPOSTP19_H |
|
21 #define CPOSTP19_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "FT_CLandmarkTestProcedureBase.h" |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * Test procedure 19 |
|
30 */ |
|
31 class CPosTp19 : public CLandmarkTestProcedureBase |
|
32 { |
|
33 public: // Constructors and destructor |
|
34 |
|
35 /** |
|
36 * C++ default constructor. |
|
37 */ |
|
38 |
|
39 CPosTp19(TInt tpno, CStifLogger* aLog) : CLandmarkTestProcedureBase(tpno, aLog) {}; |
|
40 /** |
|
41 * Destructor. |
|
42 */ |
|
43 ~CPosTp19() {}; |
|
44 |
|
45 public: // Functions from base classes |
|
46 /** |
|
47 * From CLandmarkTestProcedureBase |
|
48 * Runs the test in the module |
|
49 */ |
|
50 void StartL(); |
|
51 |
|
52 void CloseTest(); |
|
53 |
|
54 private: |
|
55 |
|
56 void TestGetByNameL(); |
|
57 |
|
58 void ReadLandmarksDbFileL(); |
|
59 |
|
60 void ParseCategoryL(const TDesC& aDes); |
|
61 |
|
62 void SetupGlobalCategoriesL(); |
|
63 |
|
64 void TestGetGlobalL(); |
|
65 |
|
66 void AddCategoriesL( TInt aNumofCats ); |
|
67 |
|
68 void VerifyAddedCategoriesL(); |
|
69 |
|
70 private: // Data |
|
71 |
|
72 enum TValueIndex |
|
73 { |
|
74 ECategoryId =0, |
|
75 ECategoryName =1 |
|
76 }; |
|
77 |
|
78 CPosLmCategoryManager* iCategoryManager; |
|
79 RArray<TPosLmItemId> iCategoryIds; |
|
80 RArray<TUint> iGlobalCategoryIds; |
|
81 |
|
82 RPointerArray<HBufC> iCategoryNames; |
|
83 RPointerArray<HBufC> iGlobalCategoryNames; |
|
84 RPointerArray<CPosLandmarkCategory> iCategories; |
|
85 }; |
|
86 |
|
87 #endif // CPOSTP19_H |
|
88 |
|
89 // End of File |