|
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 CPOSTp158_H |
|
21 #define CPOSTp158_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "FT_CLandmarkTestProcedureBase.h" |
|
25 |
|
26 // CLASS DECLARATION |
|
27 class CPosLandmarkParser; |
|
28 class CPosLandmarkEncoder; |
|
29 /** |
|
30 * Test procedure 158 |
|
31 */ |
|
32 class CPosTp158 :public CLandmarkTestProcedureBase |
|
33 { |
|
34 public: // Constructors and destructor |
|
35 |
|
36 /** |
|
37 * C++ default constructor. |
|
38 */ |
|
39 |
|
40 CPosTp158(TInt tpno, CStifLogger* aLog) : CLandmarkTestProcedureBase(tpno, aLog) {}; |
|
41 /** |
|
42 * Destructor. |
|
43 */ |
|
44 ~CPosTp158() {}; |
|
45 |
|
46 |
|
47 public: // Functions from base classes |
|
48 |
|
49 void CloseTest(); |
|
50 |
|
51 /** |
|
52 * From CLandmarkTestProcedureBase |
|
53 * Runs the test in the module |
|
54 */ |
|
55 void StartL(); |
|
56 |
|
57 private: |
|
58 |
|
59 /** |
|
60 * |
|
61 * @aFile the file name |
|
62 */ |
|
63 void PrintParsedDataFromEncoderL( |
|
64 const TDesC& aFile, |
|
65 const TDesC8& aBuffer, |
|
66 TInt aExpectedStatusCode, |
|
67 const TDesC8& aMimeType); |
|
68 |
|
69 |
|
70 void PrintLandmarkFieldsWithDescriptionL(const CPosLandmark& aLandmark, TBool aTraceFlag=EFalse); |
|
71 |
|
72 /** |
|
73 * Check that cancel of parse is correct |
|
74 */ |
|
75 void DoCancelTestL(); |
|
76 |
|
77 |
|
78 /** |
|
79 * Trace to trace file |
|
80 */ |
|
81 void TraceL(const TDesC& msg); |
|
82 |
|
83 private: |
|
84 CPosLandmarkParser* iLandmarkParser; |
|
85 |
|
86 CPosLandmarkEncoder* iLandmarkEncoder; |
|
87 |
|
88 RPointerArray<CPosLandmark> iLandmarks; |
|
89 |
|
90 TInt iErrorsFound; |
|
91 |
|
92 CBufBase* iEncoderBuffer; |
|
93 |
|
94 CPosLmCategoryManager* iCategoryManager; |
|
95 |
|
96 }; |
|
97 |
|
98 #endif // CPOSTp158_H |
|
99 |
|
100 // End of File |