usbmgmt/usbmgr/device/classcontroller/SRC/CUsbClassControllerPlugIn.cpp
changeset 0 c9bc50fca66e
child 15 f92a4f87e424
equal deleted inserted replaced
-1:000000000000 0:c9bc50fca66e
       
     1 /*
       
     2 * Copyright (c) 1997-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:
       
    15 * Implements part of UsbMan USB Class Controller Framework.
       
    16 * All USB classes to be managed by UsbMan must derive
       
    17 * from this class.
       
    18 *
       
    19 */
       
    20 
       
    21 /**
       
    22  @file
       
    23 */
       
    24 
       
    25 #include <cusbclasscontrollerplugin.h>
       
    26 #include <ecom/ecom.h>
       
    27 #include <usb/usblogger.h>
       
    28 
       
    29 #ifdef __FLOG_ACTIVE
       
    30 _LIT8(KLogComponent, "USBSVR");
       
    31 #endif
       
    32 	
       
    33 /**
       
    34  * Constructor.
       
    35  *
       
    36  */
       
    37 
       
    38 EXPORT_C CUsbClassControllerPlugIn::CUsbClassControllerPlugIn(
       
    39 	MUsbClassControllerNotify& aOwner, TInt aStartupPriority)
       
    40 	: CUsbClassControllerBase(aOwner, aStartupPriority)
       
    41 	{
       
    42 	}
       
    43 
       
    44 /**
       
    45  * Constructs a CUsbClassControllerPlugIn object.
       
    46  *
       
    47  * @return	A new CUsbClassControllerPlugIn object	
       
    48  */
       
    49 
       
    50 EXPORT_C CUsbClassControllerPlugIn* CUsbClassControllerPlugIn::NewL(TUid aImplementationId, 
       
    51 	MUsbClassControllerNotify& aOwner) 
       
    52 	{
       
    53 	LOG_STATIC_FUNC_ENTRY
       
    54 
       
    55 	return (reinterpret_cast<CUsbClassControllerPlugIn*>(REComSession::CreateImplementationL
       
    56 		(aImplementationId, _FOFF(CUsbClassControllerPlugIn, iPrivateEComUID),
       
    57 			(TAny*) &aOwner)));
       
    58 	}
       
    59 
       
    60 
       
    61 /**
       
    62  * Destructor.
       
    63  */
       
    64 EXPORT_C CUsbClassControllerPlugIn::~CUsbClassControllerPlugIn()
       
    65 	{
       
    66 	REComSession::DestroyedImplementation(iPrivateEComUID);
       
    67 	}
       
    68