First public contribution.
1 // Copyright (c) 2006-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // f32test\testfsys\t_tfsys3.h
25 const TUint KTestClusterSize=1024;
27 class CTestMountCB : public CMountCB,
28 public MFileSystemSubType,
29 public MFileSystemClusterSize
34 void MountL(TBool /*aForceMount*/){}
35 TInt ReMount(){return KErrNone;}
37 void VolumeL(TVolumeInfo& /*aVolume*/) const{}
38 void SetVolumeL(TDes& /*aName*/){}
39 void MkDirL(const TDesC& /*aName*/){}
40 void RmDirL(const TDesC& /*aName*/){}
41 void DeleteL(const TDesC& /*aName*/){}
42 void RenameL(const TDesC& /*anOldName*/,const TDesC& /*anNewName*/){}
43 void ReplaceL(const TDesC& /*anOldName*/,const TDesC& /*anNewName*/){}
44 void EntryL(const TDesC& /*aName*/,TEntry& /*anEntry*/) const{}
45 void SetEntryL(const TDesC& /*aName*/,const TTime& /*aTime*/,TUint /*aSetAttMask*/,TUint /*aClearAttMask*/){}
46 void FileOpenL(const TDesC& /*aName*/,TUint /*aMode*/,TFileOpen /*anOpen*/,CFileCB* /*aFile*/){}
47 void DirOpenL(const TDesC& /*aName*/,CDirCB* /*aDir*/){}
48 void RawReadL(TInt64 /*aPos*/,TInt /*aLength*/,const TAny* /*aTrg*/,TInt /*anOffset*/,const RMessagePtr2& /*aMessage*/) const{}
49 void RawWriteL(TInt64 /*aPos*/,TInt /*aLength*/,const TAny* /*aSrc*/,TInt /*anOffset*/,const RMessagePtr2& /*aMessage*/){}
50 void ReadUidL(const TDesC& /*aName*/,TEntry& /*anEntry*/) const{}
51 void GetShortNameL(const TDesC& /*aLongName*/,TDes& /*aShortName*/){}
52 void GetLongNameL(const TDesC& /*aShortName*/,TDes& /*aLongName*/){}
53 void IsFileInRom(const TDesC& /*aFileName*/,TUint8*& /*aFileStart*/){}
54 void ReadSectionL(const TDesC& /*aName*/,TInt /*aPos*/,TAny* /*aTrg*/,TInt /*aLength*/,const RMessagePtr2& /*aMessage*/){}
57 // interface extension implementation
58 virtual TInt GetInterface(TInt aInterfaceId, TAny*& aInterface,TAny* aInput);
59 virtual TInt SubType(TDes& aName) const;
60 virtual TInt ClusterSize() const;
65 class CTestFileCB : public CFileCB
70 void RenameL(const TDesC& /*aNewName*/){}
71 void ReadL(TInt /*aPos*/,TInt& /*aLength*/,const TAny* /*aDes*/,const RMessagePtr2& /*aMessage*/){}
72 void WriteL(TInt /*aPos*/,TInt& /*aLength*/,const TAny* /*aDes*/,const RMessagePtr2& /*aMessage*/){}
73 TInt Address(TInt& /*aPos*/) const{return 0;}
74 void SetSizeL(TInt /*aSize*/){}
75 void SetEntryL(const TTime& /*aTime*/,TUint /*aSetAttMask*/,TUint /*aClearAttMask*/){}
78 void CheckPos(TInt /*aPos*/){}
81 class CTestDirCB : public CDirCB
86 void ReadL(TEntry& /*anEntry*/){}
89 class CTestFormatCB : public CFormatCB
94 void DoFormatStepL(){}
97 class CTestFileSystem : public CFileSystem
103 TInt DefaultPath(TDes& aPath) const;
104 TBusLocalDrive& DriveNumberToLocalDrive(TInt aDriveNumber);
105 TInt GetInterface(TInt aInterfaceId, TAny*& aInterface,TAny* aInput);
107 CMountCB* NewMountL() const;
108 CFileCB* NewFileL() const;
109 CDirCB* NewDirL() const;
110 CFormatCB* NewFormatL() const;
112 static CFileSystem* NewL();