diff -r 000000000000 -r c9bc50fca66e usbmgmt/usbmgr/device/classcontroller/SRC/CUsbClassControllerPlugIn.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/usbmgmt/usbmgr/device/classcontroller/SRC/CUsbClassControllerPlugIn.cpp Tue Feb 02 02:02:59 2010 +0200 @@ -0,0 +1,68 @@ +/* +* 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 +#include +#include + +#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(REComSession::CreateImplementationL + (aImplementationId, _FOFF(CUsbClassControllerPlugIn, iPrivateEComUID), + (TAny*) &aOwner))); + } + + +/** + * Destructor. + */ +EXPORT_C CUsbClassControllerPlugIn::~CUsbClassControllerPlugIn() + { + REComSession::DestroyedImplementation(iPrivateEComUID); + } +