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 sysinfo connectivity information |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
||
20 |
||
21 |
#ifndef TSYSCONNECTIVITY_H |
|
22 |
#define TSYSCONNECTIVITY_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 |
#include "sysinfoservice.h" |
30 |
#include "sysinfo.h" |
|
31 |
||
32 |
// CONSTANTS |
|
33 |
//const ?type ?constant_var = ?constant; |
|
34 |
||
35 |
// MACROS |
|
36 |
//#define ?macro ?macro_def |
|
37 |
// Logging path |
|
38 |
_LIT( KtsysconnectivityLogPath, "\\logs\\" ); |
|
39 |
// Log file |
|
40 |
_LIT( KtsysconnectivityLogFile, "tsysconnectivity.txt" ); |
|
41 |
||
42 |
// FUNCTION PROTOTYPES |
|
43 |
//?type ?function_name(?arg_list); |
|
44 |
||
45 |
// FORWARD DECLARATIONS |
|
46 |
//class ?FORWARD_CLASSNAME; |
|
47 |
class Ctsysconnectivity; |
|
48 |
||
49 |
// DATA TYPES |
|
50 |
//enum ?declaration |
|
51 |
//typedef ?declaration |
|
52 |
//extern ?data_type; |
|
53 |
||
54 |
// CLASS DECLARATION |
|
55 |
||
56 |
/** |
|
57 |
* Ctsysconnectivity test class for STIF Test Framework TestScripter. |
|
58 |
* ?other_description_lines |
|
59 |
* |
|
60 |
* @lib ?library |
|
61 |
* @since ?Series60_version |
|
62 |
*/ |
|
63 |
NONSHARABLE_CLASS(Ctsysconnectivity) : public CScriptBase |
|
64 |
{ |
|
65 |
public: // Constructors and destructor |
|
66 |
||
67 |
/** |
|
68 |
* Two-phased constructor. |
|
69 |
*/ |
|
70 |
static Ctsysconnectivity* NewL( CTestModuleIf& aTestModuleIf ); |
|
71 |
||
72 |
/** |
|
73 |
* Destructor. |
|
74 |
*/ |
|
75 |
virtual ~Ctsysconnectivity(); |
|
76 |
||
77 |
public: // New functions |
|
78 |
||
79 |
/** |
|
80 |
* ?member_description. |
|
81 |
* @since ?Series60_version |
|
82 |
* @param ?arg1 ?description |
|
83 |
* @return ?description |
|
84 |
*/ |
|
85 |
//?type ?member_function( ?type ?arg1 ); |
|
86 |
||
87 |
public: // Functions from base classes |
|
88 |
||
89 |
/** |
|
90 |
* From CScriptBase Runs a script line. |
|
91 |
* @since ?Series60_version |
|
92 |
* @param aItem Script line containing method name and parameters |
|
93 |
* @return Symbian OS error code |
|
94 |
*/ |
|
95 |
virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
96 |
||
97 |
protected: // New functions |
|
98 |
||
99 |
/** |
|
100 |
* ?member_description. |
|
101 |
* @since ?Series60_version |
|
102 |
* @param ?arg1 ?description |
|
103 |
* @return ?description |
|
104 |
*/ |
|
105 |
//?type ?member_function( ?type ?arg1 ); |
|
106 |
||
107 |
protected: // Functions from base classes |
|
108 |
||
109 |
/** |
|
110 |
* From ?base_class ?member_description |
|
111 |
*/ |
|
112 |
//?type ?member_function(); |
|
113 |
||
114 |
private: |
|
115 |
||
116 |
/** |
|
117 |
* C++ default constructor. |
|
118 |
*/ |
|
119 |
Ctsysconnectivity( CTestModuleIf& aTestModuleIf ); |
|
120 |
||
121 |
/** |
|
122 |
* By default Symbian 2nd phase constructor is private. |
|
123 |
*/ |
|
124 |
void ConstructL(); |
|
125 |
||
126 |
// Prohibit copy constructor if not deriving from CBase. |
|
127 |
// ?classname( const ?classname& ); |
|
128 |
// Prohibit assigment operator if not deriving from CBase. |
|
129 |
// ?classname& operator=( const ?classname& ); |
|
130 |
||
131 |
/** |
|
132 |
* Frees all resources allocated from test methods. |
|
133 |
* @since ?Series60_version |
|
134 |
*/ |
|
135 |
void Delete(); |
|
136 |
||
137 |
/** |
|
138 |
* Test methods are listed below. |
|
139 |
*/ |
|
140 |
||
141 |
/** |
|
142 |
* Example test method. |
|
143 |
* @since ?Series60_version |
|
144 |
* @param aItem Script line containing parameters. |
|
145 |
* @return Symbian OS error code. |
|
146 |
*/ |
|
147 |
virtual TInt SetAndGetBtState( CStifItemParser& aItem ); |
|
148 |
virtual TInt SetAndGetIRState( CStifItemParser& aItem ); |
|
149 |
virtual TInt WLanMACAdd( CStifItemParser& aItem ); |
|
150 |
virtual TInt WrongKey( CStifItemParser& aItem ); |
|
151 |
virtual TInt SetWrongDataType( CStifItemParser& aItem ); |
|
152 |
virtual TInt SetWrongKey( CStifItemParser& aItem ); |
|
153 |
virtual TInt ConnNotWithWrongKey( CStifItemParser& aItem ); |
|
154 |
//ADD NEW METHOD DEC HERE |
|
155 |
||
156 |
public: // Data |
|
157 |
// ?one_line_short_description_of_data |
|
158 |
//?data_declaration; |
|
159 |
||
160 |
protected: // Data |
|
161 |
// ?one_line_short_description_of_data |
|
162 |
//?data_declaration; |
|
163 |
||
164 |
private: // Data |
|
165 |
TBool iFeatureManagerInitialized ; |
|
166 |
// ?one_line_short_description_of_data |
|
167 |
//?data_declaration; |
|
168 |
||
169 |
// Reserved pointer for future extension |
|
170 |
//TAny* iReserved; |
|
171 |
||
172 |
public: // Friend classes |
|
173 |
//?friend_class_declaration; |
|
174 |
protected: // Friend classes |
|
175 |
//?friend_class_declaration; |
|
176 |
private: // Friend classes |
|
177 |
//?friend_class_declaration; |
|
178 |
||
179 |
}; |
|
180 |
||
181 |
#endif // TSYSCONNECTIVITY_H |
|
182 |
||
183 |
// End of File |