usbmgmt/usbmgr/device/classcontroller/SRC/CUsbClassControllerPlugIn.cpp
author Shabe Razvi <shaber@symbian.org>
Thu, 02 Sep 2010 17:31:43 +0100
branchRCL_3
changeset 45 ee9b31ff95f7
parent 43 012cc2ee6408
permissions -rw-r--r--
Merge RCL_3 fixes with reverted delivery

/*
* Copyright (c) 1997-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:
* Implements part of UsbMan USB Class Controller Framework.
* All USB classes to be managed by UsbMan must derive
* from this class.
*
*/

/**
 @file
*/

#include <cusbclasscontrollerplugin.h>
#include <ecom/ecom.h>
#include <usb/usblogger.h>

#ifdef __FLOG_ACTIVE
_LIT8(KLogComponent, "USBSVR");
#endif
	
/**
 * Constructor.
 *
 */

EXPORT_C CUsbClassControllerPlugIn::CUsbClassControllerPlugIn(
	MUsbClassControllerNotify& aOwner, TInt aStartupPriority)
	: CUsbClassControllerBase(aOwner, aStartupPriority)
	{
	}

/**
 * Constructs a CUsbClassControllerPlugIn object.
 *
 * @return	A new CUsbClassControllerPlugIn object	
 */

EXPORT_C CUsbClassControllerPlugIn* CUsbClassControllerPlugIn::NewL(TUid aImplementationId, 
	MUsbClassControllerNotify& aOwner) 
	{
	LOG_STATIC_FUNC_ENTRY

	return (reinterpret_cast<CUsbClassControllerPlugIn*>(REComSession::CreateImplementationL
		(aImplementationId, _FOFF(CUsbClassControllerPlugIn, iPrivateEComUID),
			(TAny*) &aOwner)));
	}


/**
 * Destructor.
 */
EXPORT_C CUsbClassControllerPlugIn::~CUsbClassControllerPlugIn()
	{
	REComSession::DestroyedImplementation(iPrivateEComUID);
	}