sl@0: // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: // WARNING: This file contains some APIs which are internal and are subject sl@0: // to change without notice. Such APIs should therefore not be used sl@0: // outside the Kernel and Hardware Services package. sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @internalTechnology sl@0: */ sl@0: sl@0: #ifndef RUSBHOSTMSDEVICE_H sl@0: #define RUSBHOSTMSDEVICE_H sl@0: sl@0: #include sl@0: sl@0: sl@0: struct TMassStorageUnitInfo sl@0: { sl@0: TUint32 iLunID; sl@0: TUint32 iSpare1; sl@0: TUint32 iSpare2; sl@0: }; sl@0: sl@0: /** sl@0: Creates a session over which a USB device mass storage interface can be added/removed sl@0: */ sl@0: class RUsbHostMsDevice : public RSessionBase sl@0: { sl@0: public: sl@0: IMPORT_C RUsbHostMsDevice(); sl@0: IMPORT_C void Add(const THostMassStorageConfig& aConfig, TRequestStatus& aStatus); sl@0: IMPORT_C void Remove(); sl@0: IMPORT_C TInt GetNumLun(TUint32& aNumLuns); sl@0: IMPORT_C TInt MountLun(TUint32 aLunId, TInt aDriveNum); sl@0: IMPORT_C TInt DismountLun(TInt aDriveNum); sl@0: private: sl@0: TInt StartServer(); sl@0: TVersion Version() const; sl@0: }; sl@0: sl@0: #endif // RUSBHOSTMSDEVICE_H