os/kernelhwsrv/userlibandfileserver/fileserver/shostmassstorage/client/rusbhostmsdevice.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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 // WARNING: This file contains some APIs which are internal and are subject
    16 //          to change without notice. Such APIs should therefore not be used
    17 //          outside the Kernel and Hardware Services package.
    18 //
    19 
    20 /**
    21  @file
    22  @internalTechnology
    23 */
    24 
    25 #ifndef RUSBHOSTMSDEVICE_H
    26 #define RUSBHOSTMSDEVICE_H
    27 
    28 #include <shared.h>
    29 
    30 
    31 struct TMassStorageUnitInfo
    32     {
    33     TUint32 iLunID;
    34     TUint32 iSpare1;
    35     TUint32 iSpare2;
    36     };
    37 
    38 /**
    39 Creates a session over which a USB device mass storage interface can be added/removed
    40 */
    41 class RUsbHostMsDevice : public RSessionBase
    42 	{
    43 public:
    44 	IMPORT_C RUsbHostMsDevice();
    45 	IMPORT_C void Add(const THostMassStorageConfig& aConfig, TRequestStatus& aStatus);
    46     IMPORT_C void Remove();
    47 	IMPORT_C TInt GetNumLun(TUint32& aNumLuns);
    48 	IMPORT_C TInt MountLun(TUint32 aLunId, TInt aDriveNum);
    49 	IMPORT_C TInt DismountLun(TInt aDriveNum);
    50 private:
    51 	TInt StartServer();
    52 	TVersion Version() const;
    53 	};
    54 
    55 #endif // RUSBHOSTMSDEVICE_H