usbmgmt/usbmgr/host/fdf/reference/reffdc/inc/reffdc.h
changeset 0 c9bc50fca66e
equal deleted inserted replaced
-1:000000000000 0:c9bc50fca66e
       
     1 /*
       
     2 * Copyright (c) 2007-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 *
       
    16 */
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent
       
    21 */
       
    22 
       
    23 #ifndef REFFDC_H
       
    24 #define REFFDC_H
       
    25 
       
    26 #include <e32base.h>
       
    27 #include <usbhost/internal/fdcplugin.h>
       
    28 #include <usbhost/internal/fdcinterface.h>
       
    29 
       
    30 NONSHARABLE_CLASS(CRefFdc) : public CFdcPlugin, public MFdcInterfaceV1
       
    31 	{
       
    32 public:
       
    33 	static CRefFdc* NewL(MFdcPluginObserver& aObserver);
       
    34 	~CRefFdc();
       
    35 
       
    36 private:
       
    37 	CRefFdc(MFdcPluginObserver& aObserver);
       
    38 	void ConstructL();
       
    39 	
       
    40 private: // from CFdcPlugin
       
    41 	TAny* GetInterface(TUid aUid);
       
    42 
       
    43 private: // from MFdcInterfaceV1
       
    44 	TInt Mfi1NewFunction(TUint aDeviceId,
       
    45 		const TArray<TUint>& aInterfaces,
       
    46 		const TUsbDeviceDescriptor& aDeviceDescriptor,
       
    47 		const TUsbConfigurationDescriptor& aConfigurationDescriptor);
       
    48 	void Mfi1DeviceDetached(TUint aDeviceId);
       
    49 
       
    50 private: // utility
       
    51 	void NewFunctionL(TUint aDeviceId,
       
    52 		const TArray<TUint>& aInterfaces,
       
    53 		const TUsbDeviceDescriptor& aDeviceDescriptor,
       
    54 		const TUsbConfigurationDescriptor& aConfigurationDescriptor);
       
    55 	};
       
    56 
       
    57 #endif // REFFDC_H