os/kernelhwsrv/userlibandfileserver/fileserver/shostmassstorage/client/rusbhostmslogicalunit.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 /**
    17  @file
    18  @internalTechnology
    19 */
    20 
    21 #ifndef RUSBHOSTMSLOGICALUNIT_H
    22 #define RUSBHOSTMSLOGICALUNIT_H
    23 
    24 
    25 /**
    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
    28 device.
    29 */
    30 class RUsbHostMsLogicalUnit : public RSubSessionBase
    31 	{
    32 public:
    33 	/* Constructor */
    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();
    45 
    46 private:
    47 	TVersion Version() const;
    48 	RUsbHostMsDevice dev;
    49 	};
    50 
    51 #endif // RUSBHOSTMSLOGICALUNIT_H