os/kernelhwsrv/userlibandfileserver/fileserver/shostmassstorage/client/rusbhostmslogicalunit.h
Update contrib.
1 // Copyright (c) 2008-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.
21 #ifndef RUSBHOSTMSLOGICALUNIT_H
22 #define RUSBHOSTMSLOGICALUNIT_H
26 Provides a subsession to the USB Mass Storage Host server. This class is used to
27 create a channel to interface to a single logical unit supported by the attached
30 class RUsbHostMsLogicalUnit : public RSubSessionBase
34 IMPORT_C RUsbHostMsLogicalUnit();
35 IMPORT_C TInt Initialise(const RMessage2& aMsg, TInt aDevHandleIndex, TUint32 aLun);
36 IMPORT_C TInt Read(TInt64 aPos, TInt aLength, TDes8& aTrg);
37 IMPORT_C TInt Write(TInt64 aPos, TInt aLength, const TDesC8& aTrg);
38 IMPORT_C TInt Erase(TInt64 aPos, TInt aLength);
39 IMPORT_C TInt Caps(TCapsInfo& aCapsInfo);
40 IMPORT_C void NotifyChange(TDes8& aChanged, TRequestStatus& aStatus);
41 IMPORT_C void SuspendLun();
42 IMPORT_C TInt UnInitialise();
43 IMPORT_C TInt ForceRemount(TUint aFlags);
44 IMPORT_C void NotifyChangeCancel();
47 TVersion Version() const;
51 #endif // RUSBHOSTMSLOGICALUNIT_H