author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 24 Nov 2009 08:56:33 +0200 | |
changeset 33 | 50974a8b132e |
parent 19 | 989d2f495d90 |
permissions | -rw-r--r-- |
19 | 1 |
/* |
2 |
* Copyright (c) 2002 - 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 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: Tests phone features |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
||
20 |
||
21 |
#ifndef TSYSFEATURES_H |
|
22 |
#define TSYSFEATURES_H |
|
23 |
||
24 |
// INCLUDES |
|
25 |
#include <StifLogger.h> |
|
26 |
#include <TestScripterInternal.h> |
|
27 |
#include <StifTestModule.h> |
|
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
28 |
#include <featmgr.h> |
19 | 29 |
|
30 |
#include "sysinfoservice.h" |
|
31 |
#include "sysinfo.h" |
|
32 |
||
33 |
||
34 |
// CONSTANTS |
|
35 |
//const ?type ?constant_var = ?constant; |
|
36 |
||
37 |
// MACROS |
|
38 |
//#define ?macro ?macro_def |
|
39 |
// Logging path |
|
40 |
_LIT( KtsysfeaturesLogPath, "\\logs\\testframework\\tsysfeatures\\" ); |
|
41 |
// Log file |
|
42 |
_LIT( KtsysfeaturesLogFile, "tsysfeatures.txt" ); |
|
43 |
||
44 |
// FUNCTION PROTOTYPES |
|
45 |
//?type ?function_name(?arg_list); |
|
46 |
||
47 |
// FORWARD DECLARATIONS |
|
48 |
//class ?FORWARD_CLASSNAME; |
|
49 |
class Ctsysfeatures; |
|
50 |
||
51 |
// DATA TYPES |
|
52 |
//enum ?declaration |
|
53 |
//typedef ?declaration |
|
54 |
//extern ?data_type; |
|
55 |
||
56 |
// CLASS DECLARATION |
|
57 |
||
58 |
/** |
|
59 |
* Ctsysfeatures test class for STIF Test Framework TestScripter. |
|
60 |
* ?other_description_lines |
|
61 |
* |
|
62 |
* @lib ?library |
|
63 |
* @since ?Series60_version |
|
64 |
*/ |
|
65 |
NONSHARABLE_CLASS(Ctsysfeatures) : public CScriptBase |
|
66 |
{ |
|
67 |
public: // Constructors and destructor |
|
68 |
||
69 |
/** |
|
70 |
* Two-phased constructor. |
|
71 |
*/ |
|
72 |
static Ctsysfeatures* NewL( CTestModuleIf& aTestModuleIf ); |
|
73 |
||
74 |
/** |
|
75 |
* Destructor. |
|
76 |
*/ |
|
77 |
virtual ~Ctsysfeatures(); |
|
78 |
||
79 |
public: // New functions |
|
80 |
||
81 |
/** |
|
82 |
* ?member_description. |
|
83 |
* @since ?Series60_version |
|
84 |
* @param ?arg1 ?description |
|
85 |
* @return ?description |
|
86 |
*/ |
|
87 |
//?type ?member_function( ?type ?arg1 ); |
|
88 |
||
89 |
public: // Functions from base classes |
|
90 |
||
91 |
/** |
|
92 |
* From CScriptBase Runs a script line. |
|
93 |
* @since ?Series60_version |
|
94 |
* @param aItem Script line containing method name and parameters |
|
95 |
* @return Symbian OS error code |
|
96 |
*/ |
|
97 |
virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
98 |
||
99 |
protected: // New functions |
|
100 |
||
101 |
/** |
|
102 |
* ?member_description. |
|
103 |
* @since ?Series60_version |
|
104 |
* @param ?arg1 ?description |
|
105 |
* @return ?description |
|
106 |
*/ |
|
107 |
//?type ?member_function( ?type ?arg1 ); |
|
108 |
||
109 |
protected: // Functions from base classes |
|
110 |
||
111 |
/** |
|
112 |
* From ?base_class ?member_description |
|
113 |
*/ |
|
114 |
//?type ?member_function(); |
|
115 |
||
116 |
private: |
|
117 |
||
118 |
/** |
|
119 |
* C++ default constructor. |
|
120 |
*/ |
|
121 |
Ctsysfeatures( CTestModuleIf& aTestModuleIf ); |
|
122 |
||
123 |
/** |
|
124 |
* By default Symbian 2nd phase constructor is private. |
|
125 |
*/ |
|
126 |
void ConstructL(); |
|
127 |
||
128 |
// Prohibit copy constructor if not deriving from CBase. |
|
129 |
// ?classname( const ?classname& ); |
|
130 |
// Prohibit assigment operator if not deriving from CBase. |
|
131 |
// ?classname& operator=( const ?classname& ); |
|
132 |
||
133 |
/** |
|
134 |
* Frees all resources allocated from test methods. |
|
135 |
* @since ?Series60_version |
|
136 |
*/ |
|
137 |
void Delete(); |
|
138 |
||
139 |
/** |
|
140 |
* Test methods are listed below. |
|
141 |
*/ |
|
142 |
||
143 |
/** |
|
144 |
* Example test method. |
|
145 |
* @since ?Series60_version |
|
146 |
* @param aItem Script line containing parameters. |
|
147 |
* @return Symbian OS error code. |
|
148 |
*/ |
|
149 |
virtual TInt BlueTooth( CStifItemParser& aItem ); |
|
150 |
virtual TInt InfraRed( CStifItemParser& aItem ); |
|
151 |
virtual TInt Camera( CStifItemParser& aItem ); |
|
152 |
virtual TInt MemoryCard( CStifItemParser& aItem ); |
|
153 |
virtual TInt FMRadio( CStifItemParser& aItem ); |
|
154 |
virtual TInt Qwerty( CStifItemParser& aItem ); |
|
155 |
virtual TInt WLan( CStifItemParser& aItem ); |
|
156 |
virtual TInt Usb( CStifItemParser& aItem ); |
|
157 |
virtual TInt Pen( CStifItemParser& aItem ); |
|
158 |
virtual TInt LED( CStifItemParser& aItem ); |
|
159 |
virtual TInt CoverUI( CStifItemParser& aItem ); |
|
160 |
virtual TInt SideVolumeKeys( CStifItemParser& aItem ); |
|
161 |
virtual TInt Vibra( CStifItemParser& aItem ); |
|
162 |
virtual TInt WrongKey( CStifItemParser& aItem ); |
|
163 |
||
164 |
//ADD NEW METHOD DEC HERE |
|
165 |
TInt FeatSupportInfo( const TDesC& aFeature) ; |
|
166 |
public: // Data |
|
167 |
// ?one_line_short_description_of_data |
|
168 |
//?data_declaration; |
|
169 |
||
170 |
protected: // Data |
|
171 |
// ?one_line_short_description_of_data |
|
172 |
//?data_declaration; |
|
173 |
||
174 |
private: // Data |
|
175 |
TBool iFeatureManagerInitialized ; |
|
176 |
// ?one_line_short_description_of_data |
|
177 |
//?data_declaration; |
|
178 |
||
179 |
// Reserved pointer for future extension |
|
180 |
//TAny* iReserved; |
|
181 |
||
182 |
public: // Friend classes |
|
183 |
//?friend_class_declaration; |
|
184 |
protected: // Friend classes |
|
185 |
//?friend_class_declaration; |
|
186 |
private: // Friend classes |
|
187 |
//?friend_class_declaration; |
|
188 |
||
189 |
}; |
|
190 |
||
191 |
#endif // TSYSFEATURES_H |
|
192 |
||
193 |
// End of File |