Update contrib.
1 // Copyright (c) 2009 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 the License "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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
20 class TUsbInterfaceDescriptor;
21 class TUsbDeviceDescriptor;
23 class THostMassStorageConfig;
25 class CUsbMsMountManager;
30 class CUsbHost: public CBase, public MUsbHostBusEventObserver
33 static CUsbHost* NewL();
40 TInt DevicesNumber() const;
41 void DriveMap(TDriveMap& aDriveMap) const;
42 void DeviceMap(TInt aDeviceIndex, TDeviceMap& aDeviceMap) const;
47 void ProcessBusEventL();
52 void LoadFileSystemL();
54 void StartUsbHostMs(TRequestStatus& aStatus);
57 RUsbHubDriver::TBusEvent::TEvent WaitForBusEvent();
61 void CloseAllDevicesL();
64 void DismountDeviceL();
65 void DismountAllFileSystemsL();
68 CUsbHostAo* iUsbHostAo;
70 RUsbHubDriver iHubDriver;
72 CUsbMsMountManager* iMountManager;
76 RUsbHubDriver::TBusEvent iEvent;
80 class CUsbHostDisp: public CUsbHost
83 static CUsbHostDisp* NewL(MDriveDisplay& aDriveDisplay);
87 CUsbHostDisp(MDriveDisplay& aDriveDisplay);
90 void ProcessBusEventL();
93 MDriveDisplay& iDriveDisplay;