1 /* |
|
2 * Copyright (c) 2007 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: Provides testing of CMnMapView class methods |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CTESTMNMAPVIEW_H |
|
21 #define CTESTMNMAPVIEW_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <StifLogger.h> |
|
25 #include <TestScripterInternal.h> |
|
26 #include <StifTestModule.h> |
|
27 #include <mnnavigator.h> |
|
28 #include <AknServerApp.h> |
|
29 |
|
30 // CLASS |
|
31 |
|
32 class CTestMnMapView : public CActive, public MAknServerAppExitObserver |
|
33 { |
|
34 public: //Public constructor of class |
|
35 |
|
36 /** |
|
37 * |
|
38 */ |
|
39 CTestMnMapView(CStifLogger* aLog); |
|
40 |
|
41 static CTestMnMapView* NewL(CStifLogger* aLog); |
|
42 |
|
43 void ConstructL(); |
|
44 |
|
45 ~CTestMnMapView(); |
|
46 |
|
47 public: //Public methods |
|
48 |
|
49 public: //Public methods |
|
50 |
|
51 /** |
|
52 * |
|
53 */ |
|
54 TInt CreateMapViewL( CStifItemParser& aItem ); |
|
55 |
|
56 /** |
|
57 * |
|
58 */ |
|
59 TInt CreateChainedMapViewL( CStifItemParser& aItem ); |
|
60 |
|
61 /** |
|
62 * |
|
63 */ |
|
64 TInt AddLinkedLmksToShowL( CStifItemParser& aItem ); |
|
65 |
|
66 /** |
|
67 * |
|
68 */ |
|
69 TInt AddLmksToShowL( CStifItemParser& aItem ); |
|
70 |
|
71 /** |
|
72 * |
|
73 */ |
|
74 TInt AddPackedLmksToShowL( CStifItemParser& aItem ); |
|
75 |
|
76 /** |
|
77 * |
|
78 */ |
|
79 TInt ResetLmksToShowL( CStifItemParser& aItem ); |
|
80 |
|
81 /** |
|
82 * |
|
83 */ |
|
84 TInt SetMapAreaL( CStifItemParser& aItem ); |
|
85 |
|
86 /** |
|
87 * |
|
88 */ |
|
89 TInt ResetMapAreaL( CStifItemParser& aItem ); |
|
90 |
|
91 /** |
|
92 * |
|
93 */ |
|
94 TInt SetCustomRequestTextL( CStifItemParser& aItem ); |
|
95 |
|
96 /** |
|
97 * |
|
98 */ |
|
99 TInt SetUseDefaultRequestTextL( CStifItemParser& aItem ); |
|
100 |
|
101 /** |
|
102 * |
|
103 */ |
|
104 TInt SetCurrentLocationOptionL( CStifItemParser& aItem ); |
|
105 |
|
106 /** |
|
107 * |
|
108 */ |
|
109 TInt GetCurrentLocationOptionL( CStifItemParser& aItem ); |
|
110 |
|
111 /** |
|
112 * |
|
113 */ |
|
114 TInt SetAndGetOptionsL( CStifItemParser& aItem ); |
|
115 |
|
116 /** |
|
117 * |
|
118 */ |
|
119 TInt SelectionResultTypeL( CStifItemParser& aItem ); |
|
120 |
|
121 /** |
|
122 * |
|
123 */ |
|
124 TInt ShowMapL( CStifItemParser& aItem ); |
|
125 |
|
126 /** |
|
127 * |
|
128 */ |
|
129 TInt ShowCurrentLocationL( CStifItemParser& aItem ); |
|
130 |
|
131 /** |
|
132 * |
|
133 */ |
|
134 TInt SelectFromMapL( CStifItemParser& aItem ); |
|
135 |
|
136 /** |
|
137 * |
|
138 */ |
|
139 TInt SetViewExitObserverL( CStifItemParser& aItem ); |
|
140 |
|
141 /** |
|
142 * |
|
143 */ |
|
144 TInt RemoveViewExitObserverL( CStifItemParser& aItem ); |
|
145 |
|
146 /** |
|
147 * |
|
148 */ |
|
149 void HandleServerAppExit(TInt aReason); |
|
150 |
|
151 protected: |
|
152 |
|
153 void RunL(); |
|
154 |
|
155 void DoCancel(); |
|
156 |
|
157 private: |
|
158 |
|
159 // Private members |
|
160 CStifLogger* iLog; //Log |
|
161 }; |
|
162 |
|
163 #endif // CTESTMNMAPVIEW_H |
|
164 |
|