analyzetool/kerneleventhandler/src/analyzetooldevice.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 25 May 2010 14:22:58 +0300
branchRCL_3
changeset 19 da2cedce4920
permissions -rw-r--r--
Revision: 201019 Kit: 2010121

/*
* 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:  Definitions for the class DAnalyzeToolDevice.
*
*/


// INCLUDE FILES
#include "analyzetooldevice.h"
#include "analyzetoolchannel.h"
#include "atlog.h"

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

// -----------------------------------------------------------------------------
// DAnalyzeToolDevice::DAnalyzeToolDevice()
// C++ default constructor.
// -----------------------------------------------------------------------------
//
DAnalyzeToolDevice::DAnalyzeToolDevice()
    {
    LOGSTR1( "ATDD DAnalyzeToolDevice::DAnalyzeToolDevice()" );
    // Set version number
    iVersion = KAnalyzeToolLddVersion();
    }

// -----------------------------------------------------------------------------
// DAnalyzeToolDevice::Install()
// Second stage constructor.
// -----------------------------------------------------------------------------
//
TInt DAnalyzeToolDevice::Install()
    {
    LOGSTR1( "ATDD DAnalyzeToolDevice::Install()" );
    // Set device name
    return SetName( &KAnalyzeToolLddName );
    }

// -----------------------------------------------------------------------------
// DAnalyzeToolDevice::GetCaps()
// Gets the driver's capabilities.
// -----------------------------------------------------------------------------
//
void DAnalyzeToolDevice::GetCaps( TDes8& /*aDes*/ ) const
    {
    LOGSTR1( "ATDD DAnalyzeToolDevice::GetCaps()" );
    }

// -----------------------------------------------------------------------------
// DAnalyzeToolDevice::Create()
// Creates the logical channel.
// -----------------------------------------------------------------------------
//
TInt DAnalyzeToolDevice::Create( DLogicalChannelBase*& aChannel )
    {
    LOGSTR1( "ATDD DAnalyzeToolDevice::Create()" );

    // create new channel
    aChannel = new DAnalyzeToolChannel;

    // check that everything is OK
    return ( aChannel != NULL ) ? KErrNone : KErrNoMemory;
    }

// -----------------------------------------------------------------------------
// DECLARE_STANDARD_LDD
// Defines the entry point for a standard logical device driver (LDD),
// and declares the ordinal 1 export function for creating 
// the LDD factory object
// -----------------------------------------------------------------------------
//
DECLARE_STANDARD_LDD()
    {
    LOGSTR1( "ATDD DECLARE_STANDARD_LDD()" );
    return new DAnalyzeToolDevice;
    }
    
// ================= OTHER EXPORTED FUNCTIONS =================================

// None

// End of File