Update contrib.
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
19 #include "T_TestFSY.h"
22 _LIT(KDefaultPath, "C:\\");
25 CTestFileSystem::CTestFileSystem()
32 CMountCB* CTestFileSystem::NewMountL() const
34 // Create a new mount control block
37 return (new(ELeave) CTestMountCB);
40 CFileCB* CTestFileSystem::NewFileL() const
45 return (new(ELeave) CTestFileCB);
48 CDirCB* CTestFileSystem::NewDirL() const
50 // create a new directory lister
53 return (new(ELeave) CTestDirCB);
56 CFormatCB* CTestFileSystem::NewFormatL() const
58 // Create a new media formatter
61 return (new(ELeave) CTestFormatCB);
64 TInt CTestFileSystem::DefaultPath(TDes& aPath) const
66 // Return the intial default path
73 void CTestFileSystem::DriveInfo(TDriveInfo& anInfo,TInt aDriveNumber) const
75 // Return drive info - iDriveAtt and iBatteryState are already set
78 TLocalDriveCapsV2Buf localDriveCaps;
79 DriveNumberToLocalDrive(aDriveNumber).Caps(localDriveCaps);
80 anInfo.iMediaAtt=localDriveCaps().iMediaAtt;
81 anInfo.iType=localDriveCaps().iType;
82 anInfo.iDriveAtt=localDriveCaps().iDriveAtt;
85 TBusLocalDrive& CTestFileSystem::DriveNumberToLocalDrive(TInt aDriveNumber) const
87 // Return the local drive associated with aDriveNumber
90 return(GetLocalDrive(aDriveNumber));