|
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 the License "Symbian Foundation License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.symbianfoundation.org/legal/sfl-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 CPosTp45_H |
|
21 #define CPosTp45_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "FT_CLandmarkTestProcedureBase.h" |
|
25 |
|
26 //CONSTANTS |
|
27 |
|
28 // CLASS DECLARATION |
|
29 class CPosLandmarkEncoder; |
|
30 |
|
31 /** |
|
32 * Test procedure 45 |
|
33 */ |
|
34 class CPosTp45 :public CLandmarkTestProcedureBase |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * C++ default constructor. |
|
40 */ |
|
41 |
|
42 CPosTp45(TInt tpno, CStifLogger* aLog) : CLandmarkTestProcedureBase(tpno, aLog) {}; |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 ~CPosTp45() {}; |
|
47 |
|
48 public: // Functions from base classes |
|
49 |
|
50 /** |
|
51 * From CLandmarkTestProcedureBase |
|
52 * Runs the test in the module |
|
53 */ |
|
54 void StartL(); |
|
55 |
|
56 /** |
|
57 * From CLandmarkTestProcedureBase |
|
58 * Cleans up after a test. |
|
59 * Always called, even if the test leaves. |
|
60 */ |
|
61 void CloseTest(); |
|
62 |
|
63 private: |
|
64 |
|
65 void ExportLandmarksL( const TDesC& aFileName, |
|
66 RArray<TPosLmItemId>& aArrayOfIds, |
|
67 CPosLandmarkDatabase::TTransferOptions aTransferOptions); |
|
68 |
|
69 void ExportLandmarksIncL( const TDesC& aFileName, |
|
70 RArray<TPosLmItemId>& aArrayOfIds, |
|
71 CPosLandmarkDatabase::TTransferOptions aTransferOptions, |
|
72 TBool aUseWaitForRequest); |
|
73 |
|
74 void ExportWithCollectionDataL(RArray<TPosLmItemId>& aArrayOfIds, |
|
75 CPosLandmarkDatabase::TTransferOptions aTransferOptions); |
|
76 |
|
77 void ExportAndCancelL( const TDesC& aFileName, |
|
78 const TBool& aInCallback, |
|
79 CPosLandmarkDatabase::TTransferOptions aTransferOptions); |
|
80 |
|
81 void VerifyCancelL(const TDesC& aFileName, const TInt aMaxExported); |
|
82 |
|
83 void AddLandmarksL(); |
|
84 |
|
85 void AddCategoriesL(); |
|
86 |
|
87 void RenameGlobalCategoryL(); |
|
88 |
|
89 void TestErrorCodesL(); |
|
90 |
|
91 void DeleteFile(const TDesC& aFile); |
|
92 |
|
93 /** |
|
94 * Test to export to a file with long filename (more than 255 characters) |
|
95 */ |
|
96 void ExportToFileWithLongFileNameL(); |
|
97 |
|
98 // Added for BC testing |
|
99 void MakeEmptyLmDatabaseL( CPosLandmarkDatabase& aLdb, |
|
100 CPosLmCategoryManager& aCatMgr ); |
|
101 |
|
102 void SetupGlobalCategoriesL(); |
|
103 |
|
104 private: |
|
105 |
|
106 CPosLmCategoryManager* iCategoryManager; |
|
107 RPointerArray<CPosLandmarkCategory> iCategories; |
|
108 RArray<TUint> iGlobalCategoryIds; |
|
109 RArray<TPtrC> iGlobalCategoryNames; |
|
110 RArray<TPtrC> iGlobalCategoryTestNames; |
|
111 |
|
112 CPosLandmarkEncoder* iLandmarkEncoder; |
|
113 |
|
114 CBufBase* iBuffer; |
|
115 |
|
116 TBool iLogToFile; |
|
117 |
|
118 }; |
|
119 |
|
120 #endif // CPosTp45_H |
|
121 |
|
122 |
|
123 // End of File |