usbmgmt/usbmgr/host/functiondrivers/ms/msfdc/inc/msfdc.h
changeset 0 c9bc50fca66e
equal deleted inserted replaced
-1:000000000000 0:c9bc50fca66e
       
     1 /*
       
     2 * Copyright (c) 2008-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 MSFDC_H
       
    24 #define MSFDC_H
       
    25 
       
    26 #include <e32base.h>
       
    27 #include <usbhost/internal/fdcplugin.h>
       
    28 #include <usbhost/internal/fdcinterface.h>
       
    29 #include "msmmclient.h"
       
    30 
       
    31 /**
       
    32   The CMsFdc class
       
    33  
       
    34   Implements FDC that sends attach/disattach notifications to Mass
       
    35   Storage Mount Manager.
       
    36  */
       
    37 NONSHARABLE_CLASS(CMsFdc) : public CFdcPlugin, public MFdcInterfaceV1
       
    38 	{
       
    39 
       
    40 public:
       
    41 	static CMsFdc* NewL(MFdcPluginObserver& aObserver);
       
    42 	~CMsFdc();
       
    43 
       
    44 
       
    45 private:
       
    46 	CMsFdc(MFdcPluginObserver& aObserver);
       
    47 	void ConstructL();
       
    48 
       
    49 private: // from CFdcPlugin
       
    50 	TAny* GetInterface(TUid aUid);
       
    51 	TInt GetDefaultLanguageL(TUint aDeviceId, TUint& aDefaultLangId);
       
    52 
       
    53 private: // from MFdcInterfaceV1
       
    54 	TInt Mfi1NewFunction(TUint aDeviceId,
       
    55 		const TArray<TUint>& aInterfaces,
       
    56 		const TUsbDeviceDescriptor& aDeviceDescriptor,
       
    57 		const TUsbConfigurationDescriptor& aConfigurationDescriptor);
       
    58 	void Mfi1DeviceDetached(TUint aDeviceId);
       
    59 private:
       
    60 	RMsmmSession iMsmmSession;
       
    61 	};
       
    62 
       
    63 #endif // MSFDC_H