author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Thu, 27 Aug 2009 07:43:07 +0300 | |
changeset 22 | fc9cf246af83 |
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: ?Description |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
||
20 |
||
21 |
#ifndef TSYSINFOSERVICETESTS_H |
|
22 |
#define TSYSINFOSERVICETESTS_H |
|
23 |
||
24 |
// INCLUDES |
|
25 |
#include <StifLogger.h> |
|
26 |
#include <TestScripterInternal.h> |
|
27 |
#include <StifTestModule.h> |
|
28 |
||
29 |
||
30 |
// CONSTANTS |
|
31 |
const TInt PASS(0); |
|
32 |
const TInt FAIL(!PASS); |
|
33 |
||
34 |
// MACROS |
|
35 |
// Logging path |
|
36 |
_LIT( KtsysinfoservicetestsLogPath, "\\logs\\testframework\\" ); |
|
37 |
// Log file |
|
38 |
_LIT( KtsysinfoservicetestsLogFile, "tsysinfoservicetests.txt" ); |
|
39 |
_LIT( KtsysinfoservicetestsLogFileWithTitle, "tsysinfoservicetests_[%S].txt" ); |
|
40 |
||
41 |
// FORWARD DECLARATIONS |
|
42 |
class Ctsysinfoservicetests; |
|
43 |
class CSysData; |
|
44 |
// |
|
45 |
extern int VibraNotification(); |
|
46 |
extern int InputLangNotification(); |
|
47 |
extern int PredTextNotification(); |
|
48 |
extern int VibraNotificationCancel(); |
|
49 |
extern int ReqNotification(int, char**); |
|
50 |
extern int IRNotification(int, char**); |
|
51 |
extern int ActiveConnection(CStifLogger* aLog); |
|
52 |
extern int GetActiveConnReqCancel(); |
|
53 |
||
54 |
// DATA TYPES |
|
55 |
||
56 |
// CLASS DECLARATION |
|
57 |
||
58 |
/** |
|
59 |
* Ctsysinfoservicetests test class for STIF Test Framework TestScripter. |
|
60 |
* ?other_description_lines |
|
61 |
* |
|
62 |
* @lib sysinfoservice.lib |
|
63 |
* @since Series60_3.2 |
|
64 |
*/ |
|
65 |
NONSHARABLE_CLASS(Ctsysinfoservicetests) : public CScriptBase |
|
66 |
{ |
|
67 |
public: // Constructors and destructor |
|
68 |
||
69 |
/** |
|
70 |
* Two-phased constructor. |
|
71 |
*/ |
|
72 |
static Ctsysinfoservicetests* NewL( CTestModuleIf& aTestModuleIf ); |
|
73 |
||
74 |
/** |
|
75 |
* Destructor. |
|
76 |
*/ |
|
77 |
virtual ~Ctsysinfoservicetests(); |
|
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: // Functions from base classes |
|
100 |
||
101 |
/** |
|
102 |
* From ?base_class ?member_description |
|
103 |
*/ |
|
104 |
//?type ?member_function(); |
|
105 |
||
106 |
private: |
|
107 |
||
108 |
/** |
|
109 |
* C++ default constructor. |
|
110 |
*/ |
|
111 |
Ctsysinfoservicetests( CTestModuleIf& aTestModuleIf ); |
|
112 |
||
113 |
/** |
|
114 |
* By default Symbian 2nd phase constructor is private. |
|
115 |
*/ |
|
116 |
void ConstructL(); |
|
117 |
||
118 |
// Prohibit copy constructor if not deriving from CBase. |
|
119 |
// ?classname( const ?classname& ); |
|
120 |
// Prohibit assigment operator if not deriving from CBase. |
|
121 |
// ?classname& operator=( const ?classname& ); |
|
122 |
||
123 |
/** |
|
124 |
* Frees all resources allocated from test methods. |
|
125 |
* @since ?Series60_version |
|
126 |
*/ |
|
127 |
void Delete(); |
|
128 |
||
129 |
/** |
|
130 |
* Test methods are listed below. |
|
131 |
*/ |
|
132 |
virtual TInt FirmwareVersionL(CStifItemParser &aItem ); |
|
133 |
virtual TInt PlatformVersionL(CStifItemParser &aItem ); |
|
134 |
virtual TInt SymbianOSVersionL(CStifItemParser &aItem ); |
|
135 |
virtual TInt MachineIDL(CStifItemParser &aItem ); |
|
136 |
virtual TInt ProductTypeL(CStifItemParser &aItem ); |
|
137 |
virtual TInt ManufacturerL(CStifItemParser &aItem ); |
|
138 |
virtual TInt PhoneModelL(CStifItemParser &aItem ); |
|
139 |
virtual TInt IMEINumberL(CStifItemParser &aItem ); |
|
140 |
||
141 |
virtual TInt BatteryLevelAutoL(CStifItemParser &aItem ); |
|
142 |
virtual TInt BatteryChargingAutoL(CStifItemParser &aItem ); |
|
143 |
virtual TInt BatteryStrengthAsyncL(CStifItemParser &aItem ); |
|
144 |
||
145 |
virtual TInt FeaturesL(CStifItemParser &aItem ); |
|
146 |
||
147 |
||
148 |
virtual TInt ConnectedAcc(CStifItemParser &aItem ); |
|
149 |
virtual TInt InputLang(CStifItemParser &aItem ); |
|
150 |
virtual TInt VibraStatus(CStifItemParser &aItem ); |
|
151 |
virtual TInt PredText(CStifItemParser &aItem ); |
|
152 |
virtual TInt SetInputLang(CStifItemParser &aItem ); |
|
153 |
virtual TInt SetDisplayLang(CStifItemParser &aItem ); |
|
154 |
virtual TInt GetDisplayLang(CStifItemParser &aItem ); |
|
155 |
virtual TInt SupportedLang(CStifItemParser &aItem ); |
|
156 |
virtual TInt AvailableUSBModes(CStifItemParser &aItem ); |
|
157 |
virtual TInt ActiveUSBModes(CStifItemParser &aItem ); |
|
158 |
virtual TInt NotificationCancelVibra(CStifItemParser &aItem ); |
|
22
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
159 |
virtual TInt CameraData(CStifItemParser &aItem ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
160 |
virtual TInt CameraDataNegativeEntity(CStifItemParser &aItem ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
161 |
virtual TInt CameraDataNegativeKey(CStifItemParser &aItem ); |
19 | 162 |
|
163 |
virtual TInt IRStatus(CStifItemParser &aItem ); |
|
164 |
virtual TInt ConnBluetooth(CStifItemParser &aItem ); |
|
165 |
virtual TInt GetActiveConnections(CStifItemParser &aItem ); |
|
166 |
virtual TInt GetWlanMacAddress(CStifItemParser &aItem ); |
|
167 |
virtual TInt GetActiveConnectionsCancel(CStifItemParser &aItem ); |
|
168 |
||
169 |
virtual TInt GetSetBrightnessL(CStifItemParser &aItem ); |
|
170 |
virtual TInt GetSetScreensaverTimeOutL(CStifItemParser &aItem ); |
|
171 |
virtual TInt UserInactivityNotifierL(CStifItemParser &aItem ); |
|
172 |
virtual TInt UserActivityNotifierL(CStifItemParser &aItem ); |
|
173 |
virtual TInt SetGetAutoLockTimeL(CStifItemParser &aItem ); |
|
174 |
virtual TInt AutoLockNotifierL(CStifItemParser &aItem ); |
|
175 |
virtual TInt DisplayResolutionL(CStifItemParser &aItem ); |
|
176 |
virtual TInt DisplayOrientationL(CStifItemParser &aItem ); |
|
177 |
virtual TInt GetSetLightTimeOutL(CStifItemParser &aItem ); |
|
178 |
virtual TInt GetSetWallPaperL(CStifItemParser &aItem ); |
|
179 |
virtual TInt GetSetKeyGaurdL(CStifItemParser &aItem ); |
|
180 |
||
181 |
virtual TInt GetListofDrivesL(CStifItemParser &aItem ); |
|
182 |
virtual TInt GetDriveInfoL(CStifItemParser &aItem ); |
|
183 |
private: // Data |
|
184 |
void GetOSVersion(TInt& aMajor,TInt& aMinor); |
|
185 |
void GetPlatformVersion(TInt& aMajor, TInt& aMinor); |
|
186 |
TInt TestN6290(); |
|
187 |
TInt TestE70(); |
|
188 |
TInt TestDevlon(); |
|
189 |
TInt DriveInfoL(CSysData* aOutput); |
|
190 |
}; |
|
191 |
||
192 |
#endif // TSYSINFOSERVICETESTS_H |
|
193 |
||
194 |
// End of File |