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 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 |
|
22 |
#include <e32base.h> |
|
23 |
#include <msvstd.h> |
|
24 |
#include <msvapi.h> |
|
25 |
#include <msvids.h> |
|
26 |
||
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
27 |
#include <StifTestInterface.h> |
19 | 28 |
|
29 |
#include "tcalendardeletetest.h" |
|
30 |
||
31 |
extern void StartAlarmServerL(); |
|
32 |
||
33 |
||
34 |
||
35 |
// ============================ MEMBER FUNCTIONS =============================== |
|
36 |
||
37 |
// ----------------------------------------------------------------------------- |
|
38 |
// CTSendMessageTest::CTSendMessageTest |
|
39 |
// C++ default constructor can NOT contain any code, that |
|
40 |
// might leave. |
|
41 |
// ----------------------------------------------------------------------------- |
|
42 |
// |
|
43 |
CTCalendarDeleteTest::CTCalendarDeleteTest( |
|
44 |
CTestModuleIf& aTestModuleIf ): |
|
45 |
CScriptBase( aTestModuleIf ) |
|
46 |
{ |
|
47 |
||
48 |
} |
|
49 |
||
50 |
// ----------------------------------------------------------------------------- |
|
51 |
// CTSendMessageTest::ConstructL |
|
52 |
// Symbian 2nd phase constructor can leave. |
|
53 |
// ----------------------------------------------------------------------------- |
|
54 |
// |
|
55 |
void CTCalendarDeleteTest::ConstructL() |
|
56 |
{ |
|
57 |
TInt count; |
|
58 |
count = User::CountAllocCells(); |
|
59 |
#if __WINS__ |
|
60 |
StartAlarmServerL(); |
|
61 |
#endif |
|
62 |
} |
|
63 |
||
64 |
// ----------------------------------------------------------------------------- |
|
65 |
// CTSendMessageTest::NewL |
|
66 |
// Two-phased constructor. |
|
67 |
// ----------------------------------------------------------------------------- |
|
68 |
// |
|
69 |
CTCalendarDeleteTest* CTCalendarDeleteTest::NewL( |
|
70 |
CTestModuleIf& aTestModuleIf ) |
|
71 |
{ |
|
72 |
CTCalendarDeleteTest* self = new (ELeave) CTCalendarDeleteTest( aTestModuleIf ); |
|
73 |
||
74 |
CleanupStack::PushL( self ); |
|
75 |
self->ConstructL(); |
|
76 |
CleanupStack::Pop(); |
|
77 |
||
78 |
return self; |
|
79 |
||
80 |
} |
|
81 |
||
82 |
// Destructor |
|
83 |
CTCalendarDeleteTest::~CTCalendarDeleteTest() |
|
84 |
{ |
|
85 |
#if __WINS__ |
|
86 |
//. StopAlarmServerL( iAlarmId ); |
|
87 |
#endif |
|
88 |
||
89 |
TInt count; |
|
90 |
count = User::CountAllocCells(); |
|
91 |
||
92 |
// Delete resources allocated from test methods |
|
93 |
Delete(); |
|
94 |
} |
|
95 |
||
96 |
// ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
97 |
||
98 |
// ----------------------------------------------------------------------------- |
|
99 |
// LibEntryL is a polymorphic Dll entry point. |
|
100 |
// Returns: CScriptBase: New CScriptBase derived object |
|
101 |
// ----------------------------------------------------------------------------- |
|
102 |
// |
|
103 |
EXPORT_C CScriptBase* LibEntryL( |
|
104 |
CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework |
|
105 |
{ |
|
106 |
||
107 |
return ( CScriptBase* ) CTCalendarDeleteTest::NewL( aTestModuleIf ); |
|
108 |
||
109 |
} |
|
110 |
||
111 |
// ----------------------------------------------------------------------------- |
|
112 |
// E32Dll is a DLL entry point function. |
|
113 |
// Returns: KErrNone |
|
114 |
// ----------------------------------------------------------------------------- |
|
115 |
// |
|
116 |
#ifndef EKA2 // Hide Dll entry point to EKA2 |
|
117 |
GLDEF_C TInt E32Dll( |
|
118 |
TDllReason /*aReason*/) // Reason code |
|
119 |
{ |
|
120 |
return(KErrNone); |
|
121 |
||
122 |
} |
|
123 |
#endif // EKA2 |
|
124 |
||
125 |
// End of File |