userlibandfileserver/fileserver/sfat/common_constants.h
changeset 15 4122176ea935
parent 0 a41df078684a
--- a/userlibandfileserver/fileserver/sfat/common_constants.h	Mon Oct 19 15:55:17 2009 +0100
+++ b/userlibandfileserver/fileserver/sfat/common_constants.h	Mon Dec 21 16:14:42 2009 +0000
@@ -21,6 +21,15 @@
  @internalTechnology
 */
 
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+//!!
+//!! WARNING!! DO NOT edit this file !! '\sfat' component is obsolete and is not being used. '\sfat32'replaces it
+//!!
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+
+
 #ifndef COMMON_CONSTANTS_H
 #define COMMON_CONSTANTS_H
 
@@ -40,25 +49,25 @@
 #if defined(_DEBUG) || defined(_DEBUG_RELEASE)
 
 #ifndef FORCE_LOGS
-    #define __PRINT(t)          		{if (DebugRegister()&KFSYS) RDebug::Print(t);}
-    #define __PRINT1(t,a)       		{if (DebugRegister()&KFSYS) RDebug::Print(t,a);}
-    #define __PRINT2(t,a,b)     		{if (DebugRegister()&KFSYS) RDebug::Print(t,a,b);}
-    #define __PRINT3(t,a,b,c)   		{if (DebugRegister()&KFSYS) RDebug::Print(t,a,b,c);}
-    #define __PRINT4(t,a,b,c,d) 		{if (DebugRegister()&KFSYS) RDebug::Print(t,a,b,c,d);}
-    #define __PRINT5(t,a,b,c,d,e) 		{if (DebugRegister()&KFSYS) RDebug::Print(t,a,b,c,d,e);}
-    #define __PRINT6(t,a,b,c,d,e,f) 	{if (DebugRegister()&KFSYS) RDebug::Print(t,a,b,c,d,e,f);}
-    #define __PRINT7(t,a,b,c,d,e,f,g)	{if (DebugRegister()&KFSYS) RDebug::Print(t,a,b,c,d,e,f,g);}
+    #define __PRINT(t)                  {if (DebugRegister()&KFSYS) RDebug::Print(t);}
+    #define __PRINT1(t,a)               {if (DebugRegister()&KFSYS) RDebug::Print(t,a);}
+    #define __PRINT2(t,a,b)             {if (DebugRegister()&KFSYS) RDebug::Print(t,a,b);}
+    #define __PRINT3(t,a,b,c)           {if (DebugRegister()&KFSYS) RDebug::Print(t,a,b,c);}
+    #define __PRINT4(t,a,b,c,d)         {if (DebugRegister()&KFSYS) RDebug::Print(t,a,b,c,d);}
+    #define __PRINT5(t,a,b,c,d,e)       {if (DebugRegister()&KFSYS) RDebug::Print(t,a,b,c,d,e);}
+    #define __PRINT6(t,a,b,c,d,e,f)     {if (DebugRegister()&KFSYS) RDebug::Print(t,a,b,c,d,e,f);}
+    #define __PRINT7(t,a,b,c,d,e,f,g)   {if (DebugRegister()&KFSYS) RDebug::Print(t,a,b,c,d,e,f,g);}
     #define __PRINT8BIT1(t,a)           {if (DebugRegister()&KFSYS){TFileName temp;temp.Copy(a);RDebug::Print(t,&temp);}}
     #define __PRINT1TEMP(t,a)           {if (DebugRegister()&KFSERV) {TBuf<KMaxFileName>temp(a);RDebug::Print(t,&temp);}}
 #else //FORCE_LOGS
-    #define __PRINT(t)          		{RDebug::Print(t);}
-    #define __PRINT1(t,a)       		{RDebug::Print(t,a);}
-    #define __PRINT2(t,a,b)     		{RDebug::Print(t,a,b);}
-    #define __PRINT3(t,a,b,c)   		{RDebug::Print(t,a,b,c);}
-    #define __PRINT4(t,a,b,c,d) 		{RDebug::Print(t,a,b,c,d);}
-    #define __PRINT5(t,a,b,c,d,e) 		{RDebug::Print(t,a,b,c,d,e);}
-    #define __PRINT6(t,a,b,c,d,e,f) 	{RDebug::Print(t,a,b,c,d,e,f);}
-    #define __PRINT7(t,a,b,c,d,e,f,g)	{RDebug::Print(t,a,b,c,d,e,f,g);}
+    #define __PRINT(t)                  {RDebug::Print(t);}
+    #define __PRINT1(t,a)               {RDebug::Print(t,a);}
+    #define __PRINT2(t,a,b)             {RDebug::Print(t,a,b);}
+    #define __PRINT3(t,a,b,c)           {RDebug::Print(t,a,b,c);}
+    #define __PRINT4(t,a,b,c,d)         {RDebug::Print(t,a,b,c,d);}
+    #define __PRINT5(t,a,b,c,d,e)       {RDebug::Print(t,a,b,c,d,e);}
+    #define __PRINT6(t,a,b,c,d,e,f)     {RDebug::Print(t,a,b,c,d,e,f);}
+    #define __PRINT7(t,a,b,c,d,e,f,g)   {RDebug::Print(t,a,b,c,d,e,f,g);}
     #define __PRINT8BIT1(t,a)           {{TFileName temp;temp.Copy(a);RDebug::Print(t,&temp);}}
     #define __PRINT1TEMP(t,a)           {{TBuf<KMaxFileName>temp(a);RDebug::Print(t,&temp);}}
 #endif//FORCE_LOGS
@@ -107,15 +116,15 @@
 _LIT8(KFileSystemName32,"FAT32   ");    ///< Name in BPB given to a Fat32 volume
 _LIT8(KDefaultVendorID, "EPOC");        ///< Vendor Name for BPB for any volume formated using a Symbian OS device
 
-const TInt KMaxFatFileNameExt=3;		///< Maximum Fat file system file/directory name extension length
+const TInt KMaxFatFileNameExt=3;        ///< Maximum Fat file system file/directory name extension length
 const TInt KNumberOfFatsInternal=1;     ///< Number of FATs for an internal drive
 const TInt KNumberOfFatsExternal=2;     ///< Number of FATs for an internal drive
 const TInt KMaxFatFileName=12;          ///< Maximum Fat file system file/directory name length
 const TInt KMaxFatFileNameWithoutExt=8; ///< Maximum Fat file system file/directory name length without extension
 const TInt KMaxDuplicateShortName=0xFFFF;
 const TInt KMaxVFatEntryName=13;        ///< Maximum entries in a VFat name
-const TInt KMaxFAT16Entries=0xFFF0;	    ///< Maximum number of clusters in a Fat16 Fat table, 65520
-const TInt KMaxFAT12Entries=0xFF0;	    ///< Maximum number of clusters in a Fat12 Fat table, 4080
+const TInt KMaxFAT16Entries=0xFFF0;     ///< Maximum number of clusters in a Fat16 Fat table, 65520
+const TInt KMaxFAT12Entries=0xFF0;      ///< Maximum number of clusters in a Fat12 Fat table, 4080
 const TUint8 KBootSectorMediaDescriptor=0xF8;   ///< Media descriptor for a Fat volume, Generic disk
 const TUint8 KEntryErasedMarker=0xE5;           ///< Erased entry marker for a directory entry
 
@@ -144,31 +153,31 @@
 Internal fault codes for FAT fsy
 */
 enum TFault
-	{
-	EVFatNoLongName,                // 0
-	EFatBadParameter,               // 1
-	EFatBadLocalDrive,              // 2
-	EFatBadBootSectorParameter,     // 3
-	EFatBadDirEntryParameter,       // 4
-	EFatBadStdFormatName,           // 5
-	EFatBadDosFormatName,           // 6
-	EFatCorrupt,                    // 7
-	EFatChkDskIllegalClusterNumber, // 8
-	EFatChkDskClusterAlreadyInUse,  // 9
-	EFatChkDskBadCluster,           // 10
-	EFatChkDskInvalidEntrySize,     // 11
-	EFatFilePosBeyondEnd,			// 12
-	EFatFileSeekIndexTooSmall,      // 13
-	EFatFileSeekIndexTooSmall2,     // 14
-	ELruCacheBadGranularity,        // 15
-	EFatRawReadTooBig,              // 16
-	EFatReadUidFailed,              // 17
-	ELruCacheFlushNotSupported,     // 18
-	EReadFileSectionFailed,         // 19
-	EBadReplacementForUnconvertibleUnicodeCharacters, // 20
+    {
+    EVFatNoLongName,                // 0
+    EFatBadParameter,               // 1
+    EFatBadLocalDrive,              // 2
+    EFatBadBootSectorParameter,     // 3
+    EFatBadDirEntryParameter,       // 4
+    EFatBadStdFormatName,           // 5
+    EFatBadDosFormatName,           // 6
+    EFatCorrupt,                    // 7
+    EFatChkDskIllegalClusterNumber, // 8
+    EFatChkDskClusterAlreadyInUse,  // 9
+    EFatChkDskBadCluster,           // 10
+    EFatChkDskInvalidEntrySize,     // 11
+    EFatFilePosBeyondEnd,           // 12
+    EFatFileSeekIndexTooSmall,      // 13
+    EFatFileSeekIndexTooSmall2,     // 14
+    ELruCacheBadGranularity,        // 15
+    EFatRawReadTooBig,              // 16
+    EFatReadUidFailed,              // 17
+    ELruCacheFlushNotSupported,     // 18
+    EReadFileSectionFailed,         // 19
+    EBadReplacementForUnconvertibleUnicodeCharacters, // 20
 
     EFatRAMDriveSizeInvalid,        // 21
-	EFatRAMDriveFreeInvalid,        // 22
+    EFatRAMDriveFreeInvalid,        // 22
     ECheckFatIndexZero,             // 23
 
     EFatCache_BadGranularity,       // 24
@@ -178,7 +187,7 @@
 
     EFatTable_InvalidIndex,         // 28
 
-	};
+    };
 
 //-----------------------------------------------------------------------------
 
@@ -197,17 +206,17 @@
     ENCNotifierClear,       ///< 6
     ECNotifier,             ///< 7
     ECNotifierCancel,       ///< 8
-	ENCNotifierRepeat,      ///< 9
+    ENCNotifierRepeat,      ///< 9
 
-	ELocalTimeForRemovableMediaOn,  ///< 10
-	ELocalTimeForRemovableMediaOff, ///< 11
-	ELocalTimeUsedOnRemovableMedia, ///< 12
-	ECreationTime,                  ///< 13
+    ELocalTimeForRemovableMediaOn,  ///< 10
+    ELocalTimeForRemovableMediaOff, ///< 11
+    ELocalTimeUsedOnRemovableMedia, ///< 12
+    ECreationTime,                  ///< 13
 
-	EDisableFATDirCache,			///<14
-	EDumpFATDirCache,				///<15
-	EFATDirCacheInfo,				///<16
-	
+    EDisableFATDirCache,            ///<14
+    EDumpFATDirCache,               ///<15
+    EFATDirCacheInfo,               ///<16
+    
     EExtCustom=KMaxTInt/2
     };