|
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 CPOSTP8_H |
|
21 #define CPOSTP8_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "FT_CLandmarkTestProcedureBase.h" |
|
25 #include <e32cmn.h> |
|
26 |
|
27 // CLASS DECLARATION |
|
28 |
|
29 /** |
|
30 * Test procedure 8 |
|
31 */ |
|
32 class CPosTp8 : public CLandmarkTestProcedureBase |
|
33 { |
|
34 public: // Constructors and destructor |
|
35 |
|
36 /** |
|
37 * C++ default constructor. |
|
38 */ |
|
39 |
|
40 CPosTp8(TInt tpno, CStifLogger* aLog) : CLandmarkTestProcedureBase(tpno, aLog) {}; |
|
41 /** |
|
42 * Destructor. |
|
43 */ |
|
44 ~CPosTp8() {}; |
|
45 |
|
46 public: // Functions from base classes |
|
47 |
|
48 /** |
|
49 * From CLandmarkTestProcedureBase |
|
50 * Runs the test in the module |
|
51 */ |
|
52 void StartL(); |
|
53 |
|
54 /** |
|
55 * From CLandmarkTestProcedureBase |
|
56 * Cleans up after a test. |
|
57 * Always called, even if the test leaves. |
|
58 */ |
|
59 void CloseTest(); |
|
60 |
|
61 |
|
62 private: |
|
63 void AddLandmarksL(CPosLandmarkDatabase* aDatabase); |
|
64 |
|
65 void UpdateLandmarksL(CPosLandmarkDatabase* aDatabase); |
|
66 |
|
67 void ReadLandmarksL(CPosLandmarkDatabase* aDatabase); |
|
68 |
|
69 void RemoveLandmarksL(CPosLandmarkDatabase* aDatabase); |
|
70 |
|
71 void RemoveLandmarksAsyncL(CPosLandmarkDatabase* aDatabase); |
|
72 |
|
73 void RemoveLandmarksAsyncWithWaitForReqL(CPosLandmarkDatabase* aDatabase); |
|
74 |
|
75 void CheckRemovedL(const TInt startIndex, const TInt stopIndex); |
|
76 |
|
77 void RemoveSetOfLandmarksL(CPosLandmarkDatabase* aDatabase); |
|
78 |
|
79 void ReadLandmarkL(TPosLmItemId aCategoryId); |
|
80 |
|
81 void RemoveLandmarksAsyncAndCancelL(); |
|
82 |
|
83 void CheckLandmarkNameMaxLengthL(); |
|
84 |
|
85 CPosLandmarkDatabase* BackupTp8DbFileL(); |
|
86 |
|
87 CPosLandmarkDatabase* RestoreTp8DbFileL(); |
|
88 |
|
89 private: //data |
|
90 |
|
91 RPointerArray<CPosLandmark> iLandmarks; |
|
92 |
|
93 }; |
|
94 |
|
95 #endif // CPOSTP8_H |
|
96 |
|
97 // End of File |