Update contrib.
1 // Copyright (c) 1998-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 // f32\sfat\inc\sl_disk.h
23 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
24 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
26 //!! WARNING!! DO NOT edit this file !! '\sfat' component is obsolete and is not being used. '\sfat32'replaces it
28 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
29 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
32 #if !defined(__SL_DISK_H__)
37 //---------------------------------------------------------------------------------------------------------------------------------
39 class MWTCacheInterface;
42 class CAtaDisk : public CRawDisk
45 static CAtaDisk* NewL(CFatMountCB& aFatMount);
47 CAtaDisk(CFatMountCB& aFatMount);
54 void ReadCachedL(TInt64 aPos,TInt aLength,TDes8& aDes) const;
55 void WriteCachedL(TInt64 aPos,const TDesC8& aDes);
57 void InvalidateUidCache();
58 virtual void InvalidateUidCachePage(TUint64 aPos);
61 void ReadL(TInt64 aPos,TInt aLength,const TAny* aTrg,const RMessagePtr2 &aMessage,TInt anOffset) const;
62 void WriteL(TInt64 aPos,TInt aLength,const TAny* aSrc,const RMessagePtr2 &aMessage,TInt anOffset);
63 virtual TInt GetLastErrorInfo(TDes8& aErrorInfo) const;
65 MWTCacheInterface* DirCacheInterface();
72 TFatDriveInterface& iDrive; ///< Driver's interface to access the media
73 MWTCacheInterface* ipDirCache; ///< pointer to the FAT Directory cache object
74 MWTCacheInterface* iUidCache; ///< pointer to the UID cache object
79 //---------------------------------------------------------------------------------------------------------------------------------
81 class CRamDisk : public CRawDisk
85 static CRamDisk* NewL(CFatMountCB& aFatMount);
86 CRamDisk(CFatMountCB& aFatMount);
90 void ReadCachedL(TInt64 aPos,TInt aLength,TDes8& aDes) const;
91 void WriteCachedL(TInt64 aPos,const TDesC8& aDes);
92 void ReadL(TInt64 aPos,TInt aLength,const TAny* aTrg,const RMessagePtr2 &aMessage,TInt anOffset) const;
93 void WriteL(TInt64 aPos,TInt aLength,const TAny* aSrc,const RMessagePtr2 &aMessage,TInt anOffset);
98 inline TUint8 *RamDiskBase() const;
101 TUint8* iRamDiskBase; ///< pointer to the beginning of the RAM disk memory area
105 //---------------------------------------------------------------------------------------------------------------------------------
107 #include "sl_disk.inl"
109 #endif //__SL_DISK_H__