|
1 /* |
|
2 * Copyright (c) 2002 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 "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: Implementation of applicationmanagement components |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include <Stiftestinterface.h> |
|
22 #include "amtest.h" |
|
23 #include <stiflogger.h> |
|
24 |
|
25 |
|
26 // ============================ MEMBER FUNCTIONS =============================== |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // Camtest::Camtest |
|
30 // C++ default constructor can NOT contain any code, that |
|
31 // might leave. |
|
32 // ----------------------------------------------------------------------------- |
|
33 // |
|
34 Camtest::Camtest( CTestModuleIf& aTestModuleIf ) |
|
35 : Cdmatest( aTestModuleIf, KAdapterUid ) |
|
36 { |
|
37 } |
|
38 // ----------------------------------------------------------------------------- |
|
39 // Camtest::ConstructL |
|
40 // Symbian 2nd phase constructor can leave. |
|
41 // ----------------------------------------------------------------------------- |
|
42 // |
|
43 void Camtest::ConstructL() |
|
44 { |
|
45 iLog = CStifLogger::NewL( KamtestLogPath, |
|
46 KamtestLogFile, |
|
47 CStifLogger::ETxt, |
|
48 CStifLogger::EFile ); |
|
49 |
|
50 iLog->Log( _L( "Loading Adapter" ) ); |
|
51 |
|
52 Cdmatest::ConstructL(); |
|
53 |
|
54 } |
|
55 |
|
56 // ----------------------------------------------------------------------------- |
|
57 // Camtest::NewL |
|
58 // Two-phased constructor. |
|
59 // ----------------------------------------------------------------------------- |
|
60 // |
|
61 Camtest* Camtest::NewL( |
|
62 CTestModuleIf& aTestModuleIf ) |
|
63 { |
|
64 Camtest* self = new (ELeave) Camtest( aTestModuleIf ); |
|
65 |
|
66 CleanupStack::PushL( self ); |
|
67 self->ConstructL(); |
|
68 CleanupStack::Pop(); |
|
69 |
|
70 return self; |
|
71 |
|
72 } |
|
73 |
|
74 // Destructor |
|
75 Camtest::~Camtest() |
|
76 { |
|
77 |
|
78 // Delete resources allocated from test methods |
|
79 // Delete(); |
|
80 |
|
81 // Delete logger |
|
82 // delete iLog; |
|
83 |
|
84 } |
|
85 |
|
86 // ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
87 |
|
88 // ----------------------------------------------------------------------------- |
|
89 // LibEntryL is a polymorphic Dll entry point. |
|
90 // Returns: CScriptBase: New CScriptBase derived object |
|
91 // ----------------------------------------------------------------------------- |
|
92 // |
|
93 EXPORT_C CScriptBase* LibEntryL( |
|
94 CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework |
|
95 { |
|
96 |
|
97 return ( CScriptBase* ) Camtest::NewL( aTestModuleIf ); |
|
98 |
|
99 } |
|
100 |
|
101 |
|
102 |
|
103 // End of File |