stif/TestModuleTemplates/TemplateKernelScriptXXX/src/TemplateKernelScriptXXX.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 15 Jul 2010 20:25:38 +0300
branchRCL_3
changeset 18 3406c99bc375
parent 0 a03f92240627
permissions -rw-r--r--
Revision: 201025 Kit: 2010127

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
* 
* Description: This file contains kernel testclass implementation.
*
*/

// INCLUDE FILES
#include "TemplateKernelScriptXXX.h"

// EXTERNAL DATA STRUCTURES

// EXTERNAL FUNCTION PROTOTYPES  

// CONSTANTS

// MACROS

// LOCAL CONSTANTS AND MACROS

// MODULE DATA STRUCTURES

// LOCAL FUNCTION PROTOTYPES

// FORWARD DECLARATIONS

// ============================= LOCAL FUNCTIONS ===============================

// ========================== OTHER EXPORTED FUNCTIONS =========================

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// TInt DTSKernelTestDriver::Create(DLogicalChannelBase*& aChannel)
// Creates the Logical Channel in EKA2
// -----------------------------------------------------------------------------
//
TInt DTemplateKernelScriptXXXDriver::Create(DLogicalChannelBase*& aChannel)
    {
    aChannel = new DTemplateKernelScriptXXX( this );
    return aChannel?KErrNone:KErrNoMemory;

    }

// -----------------------------------------------------------------------------
// TInt DTSKernelTest::DoCreate
// Second phase constructor for DLogicalChannelBase object in EKA2
// -----------------------------------------------------------------------------
//
TInt DTemplateKernelScriptXXX::DoCreate( TInt /* aUnit */, 
                                         const TDesC8* /* anInfo */, 
                                         const TVersion& /* aVer */ )
    {   
    SetDfcQ(Kern::DfcQue0());
    iMsgQ.Receive();

    return KErrNone;

    }

// -----------------------------------------------------------------------------
// DECLARE_STANDARD_LDD()
// EKA2 entry point
// -----------------------------------------------------------------------------
//
DECLARE_STANDARD_LDD()
    {
    return new DTemplateKernelScriptXXXDriver( KDriverName );

    }

// End of File