bthci/hci2implementations/hctls/usb_original/fdc/inc/fdchctloriginal.h
changeset 27 83036355c0f3
equal deleted inserted replaced
4:28479eeba3fb 27:83036355c0f3
       
     1 // Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // 
       
    15 
       
    16 /**
       
    17 @file
       
    18 @internalComponent
       
    19 */
       
    20 
       
    21 #ifndef FDCHCTLORIGINAL_H
       
    22 #define FDCHCTLORIGINAL_H
       
    23 
       
    24 #include <e32base.h>
       
    25 #include <usbhost/internal/fdcplugin.h>
       
    26 #include <usbhost/internal/fdcinterface.h>
       
    27 #include <hctlusboriginalcli.h>
       
    28 
       
    29 class CFdcHctlOriginalServer;
       
    30 
       
    31 NONSHARABLE_CLASS(CFdcHctlOriginal)
       
    32 	: public CFdcPlugin
       
    33 	, public MFdcInterfaceV1
       
    34 	{
       
    35 public:
       
    36 	static CFdcHctlOriginal* NewL(MFdcPluginObserver& aObserver);
       
    37 	~CFdcHctlOriginal();
       
    38 	
       
    39 public:
       
    40 	void RequestConnection();
       
    41 	
       
    42 private:
       
    43 	CFdcHctlOriginal(MFdcPluginObserver& aObserver);
       
    44 	void ConstructL();
       
    45 	
       
    46 private: // from CFdcPlugin
       
    47 	virtual TAny* GetInterface(TUid aUid);
       
    48 	
       
    49 private: // from MFdcInterfaceV1
       
    50 	virtual TInt Mfi1NewFunction(TUint aDeviceId,
       
    51 		const TArray<TUint>& aInterfaces,
       
    52 		const TUsbDeviceDescriptor& aDeviceDescriptor,
       
    53 		const TUsbConfigurationDescriptor& aConfigurationDescriptor);
       
    54 	virtual void Mfi1DeviceDetached(TUint aDeviceId);
       
    55 	
       
    56 private:
       
    57 	CFdcHctlOriginalServer*	iServer;
       
    58 	RHCTLUsbOriginal		iHctlSession;
       
    59 	TBool					iReady;
       
    60 	TUint32					iAclToken;
       
    61 	TUint32					iScoToken;
       
    62 	};
       
    63 
       
    64 #endif // FDCHCTLORIGINAL_H