usbmgmt/usbmgr/device/classcontroller/SRC/CUsbClassControllerPlugIn.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 02 Feb 2010 02:02:59 +0200
changeset 0 c9bc50fca66e
child 15 f92a4f87e424
permissions -rw-r--r--
Revision: 201001 Kit: 201005

/*
* 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);
	}