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: ?Description |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
#ifndef CONTACTSUT_SIM_H |
|
20 |
#define CONTACTSUT_SIM_H |
|
21 |
||
22 |
#include <StifLogger.h> |
|
23 |
#include <TestScripterInternal.h> |
|
24 |
#include <StifTestModule.h> |
|
25 |
#include <f32file.h> |
|
26 |
||
27 |
||
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
28 |
#include <liwcommon.h> |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
29 |
#include <liwbufferextension.h> |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
30 |
#include <liwservicehandler.h> |
19 | 31 |
|
32 |
||
33 |
||
34 |
// Logging path |
|
35 |
_LIT( KContactsUTLogPath, "\\logs\\testframework\\ContactsUT\\" ); |
|
36 |
// Log file |
|
37 |
_LIT( KContactsUTLogFile, "ContactsUT.txt" ); |
|
38 |
||
39 |
// CONSTANTS addcontactL |
|
40 |
||
41 |
//extern int addcontactL(int, char**); |
|
42 |
extern int getlisttestL(int, char**); |
|
43 |
extern int getlisttest_searchL(int, char**); |
|
44 |
extern int deletetestL(int, char**); |
|
45 |
extern int importL(int, char**); |
|
46 |
extern int exportL(int, char**); |
|
47 |
||
48 |
||
49 |
// FORWARD DECLARATIONS |
|
50 |
class CContactsUT; |
|
51 |
||
52 |
// CLASS DECLARATION |
|
53 |
||
54 |
/** |
|
55 |
* CContactsUT test class for STIF Test Framework TestScripter. |
|
56 |
* ?other_description_lines |
|
57 |
* |
|
58 |
* @lib ?library |
|
59 |
* @since ?Series60_version |
|
60 |
*/ |
|
61 |
||
62 |
NONSHARABLE_CLASS(CContactsUT) : public CScriptBase,public MLiwNotifyCallback |
|
63 |
{ |
|
64 |
||
65 |
||
66 |
enum TTestCase |
|
67 |
{ |
|
68 |
EGetList=10, |
|
69 |
ESearch, |
|
70 |
EDeleteContact, |
|
71 |
EImport, |
|
72 |
EExport, |
|
73 |
EAddContact, |
|
74 |
EDeleteCkh, |
|
75 |
EExportChk |
|
76 |
}; |
|
77 |
||
78 |
public : // Constructors and destructor |
|
79 |
||
80 |
/** |
|
81 |
* Two-phased constructor. |
|
82 |
*/ |
|
83 |
static CContactsUT* NewL( CTestModuleIf& aTestModuleIf); |
|
84 |
||
85 |
/** |
|
86 |
* Destructor. |
|
87 |
*/ |
|
88 |
virtual ~CContactsUT(); |
|
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 |
||
101 |
private : |
|
102 |
||
103 |
virtual TInt HandleNotifyL(TInt aCmdId,TInt aEventId,CLiwGenericParamList& aEventParamList, |
|
104 |
const CLiwGenericParamList& aInParamList); |
|
105 |
||
106 |
||
107 |
private : |
|
108 |
virtual TInt getlisttestL( CStifItemParser& aItem ); |
|
109 |
virtual TInt getlisttest_searchL( CStifItemParser& aItem ); |
|
110 |
virtual TInt deletetestL( CStifItemParser& aItem ); |
|
111 |
virtual TInt importL( CStifItemParser& aItem ); |
|
112 |
virtual TInt exportL( CStifItemParser& aItem ); |
|
113 |
virtual TInt addcontactL( CStifItemParser& aItem ); |
|
114 |
||
115 |
void LoadService(); |
|
116 |
void Delete(); |
|
117 |
private : |
|
118 |
||
119 |
/** |
|
120 |
* C++ default constructor. |
|
121 |
*/ |
|
122 |
CContactsUT( CTestModuleIf& aTestModuleIf ); |
|
123 |
||
124 |
/** |
|
125 |
* By default Symbian 2nd phase constructor is private. |
|
126 |
*/ |
|
127 |
void ConstructL(); |
|
128 |
||
129 |
private : |
|
130 |
||
131 |
CLiwServiceHandler* iServiceHandler; |
|
132 |
MLiwInterface* iIface; |
|
133 |
CLiwCriteriaItem* iCriteria; |
|
134 |
RCriteriaArray iCriteriaArray; |
|
135 |
||
136 |
CLiwGenericParamList* iInparams; |
|
137 |
CLiwGenericParamList* iOutparams; |
|
138 |
||
139 |
CLiwGenericParamList* inList; |
|
140 |
CLiwGenericParamList* outList; |
|
141 |
TInt iErr; |
|
142 |
HBufC* iCntID; |
|
143 |
TInt iCase; |
|
144 |
||
145 |
||
146 |
||
147 |
||
148 |
}; |
|
149 |
||
150 |
#endif |