|
1 /* |
|
2 * Copyright (c) 2002-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 "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: Specifick class for MiscPhone tests |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef MiscPhone_H |
|
22 #define MiscPhone_H |
|
23 |
|
24 // INCLUDES |
|
25 #include "core.h" |
|
26 #include "ctsy/serviceapi/cmmgsmphonestorageutility.h" |
|
27 #include "etelmm.h" |
|
28 #include "pcktcs.h" //ETel Packet |
|
29 #include "etelpckt.h" //ETel Packet |
|
30 |
|
31 #include <stiflogger.h> |
|
32 #include <testscripterinternal.h> |
|
33 #include <stiftestmodule.h> |
|
34 |
|
35 #if ( NCP_COMMON_S60_VERSION_SUPPORT == S60_VERSION_32 ) |
|
36 #include <mmmmesshandlerbase.h> |
|
37 #else |
|
38 #include <ctsy/rmmcustomapi.h> |
|
39 #endif |
|
40 |
|
41 |
|
42 |
|
43 // CONSTANTS |
|
44 |
|
45 // MACROS |
|
46 // Logging path |
|
47 _LIT( KSSLogPath, "\\logs\\testframework\\MiscPhone\\" ); |
|
48 // Log file |
|
49 _LIT( KSSLogFile, "MiscPhone.txt" ); |
|
50 |
|
51 _LIT(KIscControlTestCaseFileMiscPhone, "nokiatsy_miscphone.xml"); |
|
52 |
|
53 |
|
54 // FORWARD DECLARATIONS |
|
55 class TDataPackage; |
|
56 class CMmDataPackage; |
|
57 class CMessageRouterBase; |
|
58 class CCore; |
|
59 class CMiscPhone; |
|
60 |
|
61 |
|
62 |
|
63 // CLASS DECLARATION |
|
64 class CMiscPhone : public CCore |
|
65 { |
|
66 public: // Constructors and destructor |
|
67 |
|
68 /** |
|
69 * Two-phased constructor. |
|
70 */ |
|
71 static CMiscPhone* NewL( CTestModuleIf& aTestModuleIf ); |
|
72 |
|
73 /** |
|
74 * Destructor. |
|
75 */ |
|
76 virtual ~CMiscPhone(); |
|
77 |
|
78 |
|
79 public: // New functions |
|
80 |
|
81 public: // Functions from base classes |
|
82 |
|
83 /** |
|
84 * From CScriptBase Runs a script line. |
|
85 * @since Series60_ver 2.8 |
|
86 * @param aItem Script line containing method name and parameters |
|
87 * @return Symbian OS error code |
|
88 */ |
|
89 virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
90 |
|
91 /** |
|
92 * Completes a request or notification via the specific Tsy object, |
|
93 * based on IPC number and data package |
|
94 * @since Series60_ver 2.8 |
|
95 * @param aIpc: IPC number |
|
96 * aDataPackage: Data package |
|
97 * aResult: result |
|
98 * @return None |
|
99 */ |
|
100 IMPORT_C virtual void RouteCompletion( TInt aIpc, |
|
101 CMmDataPackage* aDataPackage , TInt aResult ); |
|
102 |
|
103 |
|
104 protected: // New functions |
|
105 |
|
106 /** |
|
107 * Get Customer Service Profile |
|
108 * @since Series60_ver 3.0 |
|
109 * @param aItem Script line containing method name and parameters |
|
110 * @return Symbian OS error code. |
|
111 */ |
|
112 TInt GetCustomerServiceProfile( CStifItemParser& aItem ); |
|
113 |
|
114 /** |
|
115 * Complete GetCustomerServiceProfile |
|
116 * @since Series60_ver 3.0 |
|
117 * @param aResult |
|
118 * @return None |
|
119 */ |
|
120 void CompleteGetCustomerServiceProfile( TInt aResult, CMmDataPackage* aDataPackage ); |
|
121 |
|
122 /** |
|
123 * Get Phone Id |
|
124 * @since Series60_ver 3.0 |
|
125 * @param aItem Script line containing method name and parameters |
|
126 * @return Symbian OS error code. |
|
127 */ |
|
128 TInt GetPhoneId( CStifItemParser& aItem ); |
|
129 |
|
130 /** |
|
131 * Complete GetPhoneId |
|
132 * @since Series60_ver 3.0 |
|
133 * @param aResult |
|
134 * @return None |
|
135 */ |
|
136 void CompleteGetPhoneId( TInt aResult, CMmDataPackage* aDataPackage ); |
|
137 |
|
138 /** |
|
139 * Set drive mode |
|
140 * @since Series60_ver 3.0 |
|
141 * @param aItem Script line containing method name and parameters |
|
142 * @return Symbian OS error code. |
|
143 */ |
|
144 TInt SetDriveMode( CStifItemParser& aItem ); |
|
145 |
|
146 /** |
|
147 * Complete SetDriveMode |
|
148 * @since Series60_ver 3.0 |
|
149 * @param aResult |
|
150 * @return None |
|
151 */ |
|
152 void CompleteSetDriveMode( TInt aResult ); |
|
153 |
|
154 |
|
155 |
|
156 |
|
157 protected: // Functions from base classes |
|
158 |
|
159 |
|
160 private: |
|
161 |
|
162 /** |
|
163 * C++ default constructor. |
|
164 */ |
|
165 CMiscPhone( CTestModuleIf& aTestModuleIf ); |
|
166 |
|
167 /** |
|
168 * By default Symbian 2nd phase constructor is private. |
|
169 */ |
|
170 void ConstructL(); |
|
171 |
|
172 /** |
|
173 * Frees all resources allocated from test methods. |
|
174 * @since Series60_ver 2.8 |
|
175 */ |
|
176 void Delete(); |
|
177 |
|
178 /** |
|
179 * Test methods are listed below. |
|
180 */ |
|
181 |
|
182 |
|
183 |
|
184 public: // Data |
|
185 |
|
186 protected: // Data |
|
187 |
|
188 private: // Data |
|
189 |
|
190 |
|
191 TBool iGetNotifyNetworkConnectionFailure; |
|
192 |
|
193 /** |
|
194 * Pointer to logger |
|
195 */ |
|
196 CStifLogger* iMiscPhoneLog; |
|
197 |
|
198 |
|
199 public: // Friend classes |
|
200 //?friend_class_declaration; |
|
201 protected: // Friend classes |
|
202 //?friend_class_declaration; |
|
203 private: // Friend classes |
|
204 //?friend_class_declaration; |
|
205 |
|
206 }; |
|
207 |
|
208 |
|
209 |
|
210 |
|
211 #endif // MiscPhone_H |
|
212 |
|
213 // End of File |