memana/analyzetoolclient/kerneleventhandler/src/analyzetooldevice.cpp
changeset 0 f0f2b8682603
equal deleted inserted replaced
-1:000000000000 0:f0f2b8682603
       
     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:  Definitions for the class DAnalyzeToolDevice.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include "analyzetooldevice.h"
       
    21 #include "analyzetoolchannel.h"
       
    22 #include "atlog.h"
       
    23 
       
    24 // ================= MEMBER FUNCTIONS =========================================
       
    25 
       
    26 // -----------------------------------------------------------------------------
       
    27 // DAnalyzeToolDevice::DAnalyzeToolDevice()
       
    28 // C++ default constructor.
       
    29 // -----------------------------------------------------------------------------
       
    30 //
       
    31 DAnalyzeToolDevice::DAnalyzeToolDevice()
       
    32     {
       
    33     LOGSTR1( "ATDD DAnalyzeToolDevice::DAnalyzeToolDevice()" );
       
    34     // Set version number
       
    35     iVersion = KAnalyzeToolLddVersion();
       
    36     }
       
    37 
       
    38 // -----------------------------------------------------------------------------
       
    39 // DAnalyzeToolDevice::Install()
       
    40 // Second stage constructor.
       
    41 // -----------------------------------------------------------------------------
       
    42 //
       
    43 TInt DAnalyzeToolDevice::Install()
       
    44     {
       
    45     LOGSTR1( "ATDD DAnalyzeToolDevice::Install()" );
       
    46     // Set device name
       
    47     return SetName( &KAnalyzeToolLddName );
       
    48     }
       
    49 
       
    50 // -----------------------------------------------------------------------------
       
    51 // DAnalyzeToolDevice::GetCaps()
       
    52 // Gets the driver's capabilities.
       
    53 // -----------------------------------------------------------------------------
       
    54 //
       
    55 void DAnalyzeToolDevice::GetCaps( TDes8& /*aDes*/ ) const
       
    56     {
       
    57     LOGSTR1( "ATDD DAnalyzeToolDevice::GetCaps()" );
       
    58     }
       
    59 
       
    60 // -----------------------------------------------------------------------------
       
    61 // DAnalyzeToolDevice::Create()
       
    62 // Creates the logical channel.
       
    63 // -----------------------------------------------------------------------------
       
    64 //
       
    65 TInt DAnalyzeToolDevice::Create( DLogicalChannelBase*& aChannel )
       
    66     {
       
    67     LOGSTR1( "ATDD DAnalyzeToolDevice::Create()" );
       
    68 
       
    69     // create new channel
       
    70     aChannel = new DAnalyzeToolChannel;
       
    71 
       
    72     // check that everything is OK
       
    73     return ( aChannel != NULL ) ? KErrNone : KErrNoMemory;
       
    74     }
       
    75 
       
    76 // -----------------------------------------------------------------------------
       
    77 // DECLARE_STANDARD_LDD
       
    78 // Defines the entry point for a standard logical device driver (LDD),
       
    79 // and declares the ordinal 1 export function for creating 
       
    80 // the LDD factory object
       
    81 // -----------------------------------------------------------------------------
       
    82 //
       
    83 DECLARE_STANDARD_LDD()
       
    84     {
       
    85     LOGSTR1( "ATDD DECLARE_STANDARD_LDD()" );
       
    86     return new DAnalyzeToolDevice;
       
    87     }
       
    88     
       
    89 // ================= OTHER EXPORTED FUNCTIONS =================================
       
    90 
       
    91 // None
       
    92 
       
    93 // End of File