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 |
||
20 |
||
21 |
// INCLUDE FILES |
|
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
22 |
#include <StifTestInterface.h> |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
23 |
#include "tcontact_export.h" |
19 | 24 |
|
25 |
// EXTERNAL DATA STRUCTURES |
|
26 |
//extern ?external_data; |
|
27 |
||
28 |
// EXTERNAL FUNCTION PROTOTYPES |
|
29 |
//extern ?external_function( ?arg_type,?arg_type ); |
|
30 |
||
31 |
// CONSTANTS |
|
32 |
//const ?type ?constant_var = ?constant; |
|
33 |
||
34 |
// MACROS |
|
35 |
//#define ?macro ?macro_def |
|
36 |
||
37 |
// LOCAL CONSTANTS AND MACROS |
|
38 |
//const ?type ?constant_var = ?constant; |
|
39 |
//#define ?macro_name ?macro_def |
|
40 |
||
41 |
// MODULE DATA STRUCTURES |
|
42 |
//enum ?declaration |
|
43 |
//typedef ?declaration |
|
44 |
||
45 |
// LOCAL FUNCTION PROTOTYPES |
|
46 |
//?type ?function_name( ?arg_type, ?arg_type ); |
|
47 |
||
48 |
// FORWARD DECLARATIONS |
|
49 |
//class ?FORWARD_CLASSNAME; |
|
50 |
||
51 |
// ============================= LOCAL FUNCTIONS =============================== |
|
52 |
||
53 |
// ----------------------------------------------------------------------------- |
|
54 |
// ?function_name ?description. |
|
55 |
// ?description |
|
56 |
// Returns: ?value_1: ?description |
|
57 |
// ?value_n: ?description_line1 |
|
58 |
// ?description_line2 |
|
59 |
// ----------------------------------------------------------------------------- |
|
60 |
// |
|
61 |
/* |
|
62 |
?type ?function_name( |
|
63 |
?arg_type arg, // ?description |
|
64 |
?arg_type arg) // ?description |
|
65 |
{ |
|
66 |
||
67 |
?code // ?comment |
|
68 |
||
69 |
// ?comment |
|
70 |
?code |
|
71 |
} |
|
72 |
*/ |
|
73 |
||
74 |
// ============================ MEMBER FUNCTIONS =============================== |
|
75 |
||
76 |
// ----------------------------------------------------------------------------- |
|
77 |
// Cteximport::Cteximport |
|
78 |
// C++ default constructor can NOT contain any code, that |
|
79 |
// might leave. |
|
80 |
// ----------------------------------------------------------------------------- |
|
81 |
// |
|
82 |
Cteximport::Cteximport( |
|
83 |
CTestModuleIf& aTestModuleIf ): |
|
84 |
CScriptBase( aTestModuleIf ) |
|
85 |
{ |
|
86 |
} |
|
87 |
||
88 |
// ----------------------------------------------------------------------------- |
|
89 |
// Cteximport::ConstructL |
|
90 |
// Symbian 2nd phase constructor can leave. |
|
91 |
// ----------------------------------------------------------------------------- |
|
92 |
// |
|
93 |
void Cteximport::ConstructL() |
|
94 |
{ |
|
95 |
iLog = CStifLogger::NewL( KteximportLogPath, |
|
96 |
KteximportLogFile, |
|
97 |
CStifLogger::ETxt, |
|
98 |
CStifLogger::EFile, |
|
99 |
EFalse ); |
|
100 |
icontactservice=CContactService::NewL(); |
|
101 |
||
102 |
icallback=new(ELeave) CContactCallback; |
|
103 |
} |
|
104 |
||
105 |
// ----------------------------------------------------------------------------- |
|
106 |
// Cteximport::NewL |
|
107 |
// Two-phased constructor. |
|
108 |
// ----------------------------------------------------------------------------- |
|
109 |
// |
|
110 |
Cteximport* Cteximport::NewL( |
|
111 |
CTestModuleIf& aTestModuleIf ) |
|
112 |
{ |
|
113 |
Cteximport* self = new (ELeave) Cteximport( aTestModuleIf ); |
|
114 |
||
115 |
CleanupStack::PushL( self ); |
|
116 |
self->ConstructL(); |
|
117 |
CleanupStack::Pop(); |
|
118 |
||
119 |
return self; |
|
120 |
||
121 |
} |
|
122 |
||
123 |
// Destructor |
|
124 |
Cteximport::~Cteximport() |
|
125 |
{ |
|
126 |
||
127 |
// Delete resources allocated from test methods |
|
128 |
Delete(); |
|
129 |
delete icallback; |
|
130 |
delete icontactservice; |
|
131 |
// Delete logger |
|
132 |
||
133 |
delete iLog; |
|
134 |
||
135 |
} |
|
136 |
||
137 |
// ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
138 |
||
139 |
// ----------------------------------------------------------------------------- |
|
140 |
// LibEntryL is a polymorphic Dll entry point. |
|
141 |
// Returns: CScriptBase: New CScriptBase derived object |
|
142 |
// ----------------------------------------------------------------------------- |
|
143 |
// |
|
144 |
EXPORT_C CScriptBase* LibEntryL( |
|
145 |
CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework |
|
146 |
{ |
|
147 |
||
148 |
return ( CScriptBase* ) Cteximport::NewL( aTestModuleIf ); |
|
149 |
||
150 |
} |
|
151 |
||
152 |
||
153 |
// End of File |