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