|
1 /* |
|
2 * Copyright (c) 2009 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: STIF testclass declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef TESTINSTANTMSGALERT_H |
|
19 #define TESTINSTANTMSGALERT_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <StifLogger.h> |
|
23 #include <TestScripterInternal.h> |
|
24 #include <StifTestModule.h> |
|
25 #include <TestclassAssert.h> |
|
26 #include "mimalertmanagerobserver.h" |
|
27 ////* Source code include files |
|
28 #include "cimalertmanager.h" |
|
29 #include <coreapplicationuisdomainpskeys.h> |
|
30 #include <ProfileEngineSDKCRKeys.h> |
|
31 |
|
32 |
|
33 |
|
34 //*/ |
|
35 |
|
36 // CONSTANTS |
|
37 //const ?type ?constant_var = ?constant; |
|
38 |
|
39 // MACROS |
|
40 //#define ?macro ?macro_def |
|
41 #define TEST_CLASS_VERSION_MAJOR 0 |
|
42 #define TEST_CLASS_VERSION_MINOR 0 |
|
43 #define TEST_CLASS_VERSION_BUILD 0 |
|
44 |
|
45 // Logging path |
|
46 _LIT( KtestinstantmsgalertLogPath, "//logs//testframework//testinstantmsgalert//" ); |
|
47 // Log file |
|
48 _LIT( KtestinstantmsgalertLogFile, "testinstantmsgalert.txt" ); |
|
49 _LIT( KtestinstantmsgalertLogFileWithTitle, "testinstantmsgalert_[%S].txt" ); |
|
50 |
|
51 // FUNCTION PROTOTYPES |
|
52 //?type ?function_name(?arg_list); |
|
53 |
|
54 // FORWARD DECLARATIONS |
|
55 //class ?FORWARD_CLASSNAME; |
|
56 class Ctestinstantmsgalert; |
|
57 |
|
58 // DATA TYPES |
|
59 //enum ?declaration |
|
60 //typedef ?declaration |
|
61 //extern ?data_type; |
|
62 |
|
63 // CLASS DECLARATION |
|
64 |
|
65 /** |
|
66 * Ctestinstantmsgalert test class for STIF Test Framework TestScripter. |
|
67 * ?other_description_lines |
|
68 * |
|
69 * @lib ?library |
|
70 * @since ?Series60_version |
|
71 */ |
|
72 NONSHARABLE_CLASS(Ctestinstantmsgalert) : public CScriptBase |
|
73 { |
|
74 public: // Constructors and destructor |
|
75 |
|
76 /** |
|
77 * Two-phased constructor. |
|
78 */ |
|
79 static Ctestinstantmsgalert* NewL( CTestModuleIf& aTestModuleIf ); |
|
80 |
|
81 /** |
|
82 * Destructor. |
|
83 */ |
|
84 virtual ~Ctestinstantmsgalert(); |
|
85 |
|
86 public: // New functions |
|
87 |
|
88 /** |
|
89 * ?member_description. |
|
90 * @since ?Series60_version |
|
91 * @param ?arg1 ?description |
|
92 * @return ?description |
|
93 */ |
|
94 //?type ?member_function( ?type ?arg1 ); |
|
95 |
|
96 public: // Functions from base classes |
|
97 |
|
98 /** |
|
99 * From CScriptBase Runs a script line. |
|
100 * @since ?Series60_version |
|
101 * @param aItem Script line containing method name and parameters |
|
102 * @return Symbian OS error code |
|
103 */ |
|
104 virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
105 |
|
106 protected: // New functions |
|
107 |
|
108 /** |
|
109 * ?member_description. |
|
110 * @since ?Series60_version |
|
111 * @param ?arg1 ?description |
|
112 * @return ?description |
|
113 */ |
|
114 //?type ?member_function( ?type ?arg1 ); |
|
115 |
|
116 protected: // Functions from base classes |
|
117 |
|
118 /** |
|
119 * From ?base_class ?member_description |
|
120 */ |
|
121 //?type ?member_function(); |
|
122 |
|
123 private: |
|
124 |
|
125 /** |
|
126 * C++ default constructor. |
|
127 */ |
|
128 Ctestinstantmsgalert( CTestModuleIf& aTestModuleIf ); |
|
129 |
|
130 /** |
|
131 * By default Symbian 2nd phase constructor is private. |
|
132 */ |
|
133 void ConstructL(); |
|
134 |
|
135 // Prohibit copy constructor if not deriving from CBase. |
|
136 // ?classname( const ?classname& ); |
|
137 // Prohibit assigment operator if not deriving from CBase. |
|
138 // ?classname& operator=( const ?classname& ); |
|
139 |
|
140 /** |
|
141 * Frees all resources allocated from test methods. |
|
142 * @since ?Series60_version |
|
143 */ |
|
144 void Delete(); |
|
145 |
|
146 /** |
|
147 * Test methods are listed below. |
|
148 */ |
|
149 |
|
150 /** |
|
151 * Example test method. |
|
152 * @since ?Series60_version |
|
153 * @param aItem Script line containing parameters. |
|
154 * @return Symbian OS error code. |
|
155 */ |
|
156 virtual TInt ExampleL( CStifItemParser& aItem ); |
|
157 virtual TInt CIMAlertManager_NewL( CStifItemParser& aItem ); |
|
158 virtual TInt CIMAlertManager_PlayL( CStifItemParser& aItem ); |
|
159 virtual TInt CIMAlertManager_SetVolume( CStifItemParser& aItem ); |
|
160 virtual TInt CIMAlertManager_SetRingingType( CStifItemParser& aItem ); |
|
161 virtual TInt CIMAlertManager_SetVibra( CStifItemParser& aItem ); |
|
162 virtual TInt CIMAlertManager_DoSetRingingType( CStifItemParser& aItem ); |
|
163 virtual TInt CIMAlertManager_ConvertVolume( CStifItemParser& aItem ); |
|
164 virtual TInt CIMAlertManager_Stop( CStifItemParser& aItem ); |
|
165 virtual TInt CIMAlertManager_MapcInitComplete( CStifItemParser& aItem ); |
|
166 virtual TInt CIMAlertManager_MapcPlayComplete( CStifItemParser& aItem ); |
|
167 virtual TInt CIMAlertManager_HandleKeyChange( CStifItemParser& aItem ); |
|
168 virtual TInt CIMAlertManager_HandleNotifyInt( CStifItemParser& aItem ); |
|
169 virtual TInt CIMAlertManager_MatoPrepareComplete( CStifItemParser& aItem ); |
|
170 virtual TInt CIMAlertManager_MatoPlayComplete( CStifItemParser& aItem ); |
|
171 virtual TInt CIMAlertManager_AddObserverL( CStifItemParser& aItem ); |
|
172 virtual TInt CIMAlertManager_RemoveObserver( CStifItemParser& aItem ); |
|
173 virtual TInt CIMAlertManager_HandleError( CStifItemParser& aItem ); |
|
174 |
|
175 |
|
176 |
|
177 |
|
178 /** |
|
179 * Method used to log version of test class |
|
180 */ |
|
181 void SendTestClassVersion(); |
|
182 |
|
183 //ADD NEW METHOD DEC HERE |
|
184 //[TestMethods] - Do not remove |
|
185 |
|
186 public: // Data |
|
187 // ?one_line_short_description_of_data |
|
188 //?data_declaration; |
|
189 |
|
190 protected: // Data |
|
191 // ?one_line_short_description_of_data |
|
192 //?data_declaration; |
|
193 |
|
194 private: // Data |
|
195 |
|
196 // ?one_line_short_description_of_data |
|
197 //?data_declaration; |
|
198 |
|
199 // Reserved pointer for future extension |
|
200 //TAny* iReserved; |
|
201 |
|
202 public: // Friend classes |
|
203 //?friend_class_declaration; |
|
204 protected: // Friend classes |
|
205 //?friend_class_declaration; |
|
206 private: // Friend classes |
|
207 //?friend_class_declaration; |
|
208 |
|
209 }; |
|
210 |
|
211 #endif // TESTINSTANTMSGALERT_H |
|
212 |
|
213 // End of File |