2
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 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: This file contains kernel testclass implementation.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
// INCLUDE FILES
|
|
19 |
#include "TemplateKernelScriptXXX.h"
|
|
20 |
|
|
21 |
// EXTERNAL DATA STRUCTURES
|
|
22 |
|
|
23 |
// EXTERNAL FUNCTION PROTOTYPES
|
|
24 |
|
|
25 |
// CONSTANTS
|
|
26 |
|
|
27 |
// MACROS
|
|
28 |
|
|
29 |
// LOCAL CONSTANTS AND MACROS
|
|
30 |
|
|
31 |
// MODULE DATA STRUCTURES
|
|
32 |
|
|
33 |
// LOCAL FUNCTION PROTOTYPES
|
|
34 |
|
|
35 |
// FORWARD DECLARATIONS
|
|
36 |
|
|
37 |
// ============================= LOCAL FUNCTIONS ===============================
|
|
38 |
|
|
39 |
// ========================== OTHER EXPORTED FUNCTIONS =========================
|
|
40 |
|
|
41 |
// ============================ MEMBER FUNCTIONS ===============================
|
|
42 |
|
|
43 |
// -----------------------------------------------------------------------------
|
|
44 |
// TInt DTSKernelTestDriver::Create(DLogicalChannelBase*& aChannel)
|
|
45 |
// Creates the Logical Channel in EKA2
|
|
46 |
// -----------------------------------------------------------------------------
|
|
47 |
//
|
|
48 |
TInt DTemplateKernelScriptXXXDriver::Create(DLogicalChannelBase*& aChannel)
|
|
49 |
{
|
|
50 |
aChannel = new DTemplateKernelScriptXXX( this );
|
|
51 |
return aChannel?KErrNone:KErrNoMemory;
|
|
52 |
|
|
53 |
}
|
|
54 |
|
|
55 |
// -----------------------------------------------------------------------------
|
|
56 |
// TInt DTSKernelTest::DoCreate
|
|
57 |
// Second phase constructor for DLogicalChannelBase object in EKA2
|
|
58 |
// -----------------------------------------------------------------------------
|
|
59 |
//
|
|
60 |
TInt DTemplateKernelScriptXXX::DoCreate( TInt /* aUnit */,
|
|
61 |
const TDesC8* /* anInfo */,
|
|
62 |
const TVersion& /* aVer */ )
|
|
63 |
{
|
|
64 |
SetDfcQ(Kern::DfcQue0());
|
|
65 |
iMsgQ.Receive();
|
|
66 |
|
|
67 |
return KErrNone;
|
|
68 |
|
|
69 |
}
|
|
70 |
|
|
71 |
// -----------------------------------------------------------------------------
|
|
72 |
// DECLARE_STANDARD_LDD()
|
|
73 |
// EKA2 entry point
|
|
74 |
// -----------------------------------------------------------------------------
|
|
75 |
//
|
|
76 |
DECLARE_STANDARD_LDD()
|
|
77 |
{
|
|
78 |
return new DTemplateKernelScriptXXXDriver( KDriverName );
|
|
79 |
|
|
80 |
}
|
|
81 |
|
|
82 |
|
|
83 |
// End of File
|