os/kernelhwsrv/kerneltest/f32test/shostmassstorage/msman/test/cmsdrive.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) 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 
    18 /**
    19  @file
    20  @internalTechnology
    21 */
    22 
    23 #ifndef CMSDRIVE_H
    24 #define CMSDRIVE_H
    25 
    26 class CMsDrive: public CBase
    27 	{
    28 public:
    29 	static CMsDrive* NewL();
    30 	~CMsDrive();
    31 protected:
    32     void ConstructL();
    33 	CMsDrive();
    34 
    35 public:
    36     void GetInitialDriveMapL();
    37     TBool GetUsbDeviceL();
    38 
    39     void SetSessionPathL();
    40     const TFileName& GetSessionPath() const;
    41     TInt DriveNumber() const;
    42     TBool DrivePresent() const;
    43 
    44 private:
    45     TInt iDriveNumber;
    46     TFileName iSessionPath;
    47 
    48     TDriveList iOriginalDrivelist;
    49 
    50     // Drive list after new MS device has been mounted
    51     TDriveList iMsDrivelist;
    52 	};
    53 
    54 
    55 inline TInt CMsDrive::DriveNumber() const
    56     {
    57     return iDriveNumber;
    58     }
    59 
    60 #endif // CMSDRIVE_H