os/kernelhwsrv/userlibandfileserver/fileserver/smassstorage/inc/cmassstoragefilesystem.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2004-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 // Class declaration for CMassStorageFileSystem.
    15 // 
    16 //
    17 
    18 /**
    19  @file
    20  @internalTechnology
    21 */
    22 
    23 #ifndef __CMASSSTORAGEFILESYSTEM_H__
    24 #define __CMASSSTORAGEFILESYSTEM_H__
    25 
    26 #include <f32fsys.h>
    27 #include <f32ver.h>
    28 #include <f32file.h>
    29 #include "cusbmassstoragecontroller.h"
    30 
    31 
    32 /**
    33 Mass Storage Filesystem class.
    34 Only supports creating a new mount. Calling NewFileL, NewDirL and NewFormatL
    35 results in the functions leaving with KErrNotReady.
    36 When this file system is installed a new thread is created to load the
    37 Usb Mass Storage controller.
    38 @internalTechnology
    39 */
    40 class CMassStorageFileSystem : public CFileSystem
    41 	{
    42 public:
    43 	static CMassStorageFileSystem* NewL();
    44 	~CMassStorageFileSystem();
    45 
    46 	//CFileSystem
    47 	TBool IsExtensionSupported() const;
    48 	TInt Remove();
    49 	TInt Install();
    50 	CMountCB* NewMountL() const;
    51 	CFileCB* NewFileL() const;
    52 	CDirCB* NewDirL() const;
    53 	CFormatCB* NewFormatL() const;
    54 	void DriveInfo(TDriveInfo& anInfo,TInt aDriveNumber) const;
    55 	TInt DefaultPath(TDes& aPath) const;
    56 	TInt DriveList(TDriveList& aList) const;
    57 
    58 	CUsbMassStorageController& Controller();
    59 	TInt InitThread();
    60 	TInt InitThreadL();
    61 
    62 private:
    63 	CMassStorageFileSystem();
    64 	TInt EnumerateMsDrivesL();
    65 	void ConstructL();
    66 
    67 public:	
    68 	// Public so the mount can see it
    69 	RArray<TBusLocalDrive> iLocalDriveForMediaFlag;
    70 	CArrayFixFlat<TBool> *iMediaChanged;
    71 	TRequestStatus iThreadStat;
    72 	TBool iInstalled;
    73 
    74 private:
    75 	CUsbMassStorageController* iMassStorageController;
    76 	TBool iRunning;
    77 	RArray<TInt> iMsDrives;
    78 	
    79 			
    80 	};
    81 
    82 #endif // __CMASSSTORAGEFILESYSTEM_H__
    83