TVolFormatParam Class Reference

class TVolFormatParam

Base class for volume formatting parameters. This class package buffer, TVolFormatParamBuf or packaged buffer of the derived class can be passed to the RFormat::Open() in order to provide file system-specific formatting parameters. Each file system that supports such formatting parameters shall have this class specialisation (e.g. TVolFormatParam_FAT) All classes, derived from this one must have the same size as the base class. In order to use formatting parameters the format mode shall have ESpecialFormat bit flag set.

RFormat::Open(RFs&,const TDesC&,TUint,TInt& ,const TDesC8& anInfo) ; TVolFormatParamBuf

Public Member Functions
TVolFormatParam ()
TUint32 CalcFSNameHash (const TDesC &)
TUint32 FSNameHash ()
void Init ()
void SetFileSystemName (const TDesC &)
TBool SomeParamsSet ()
Protected Member Functions
TUint32 GetVal ( TUint )
void SetVal ( TUint , TUint32 )
Public Member Enumerations
enum anonymous { KUId  = 0x820116A2 }
Protected Member Enumerations
enum anonymous { KMaxDataSlots  = 64 }
Public Attributes
const TUint32 iUId
Private Attributes
TUint32 iData
TUint32 iFSysNameHash
TBool iParamsSet

Constructor & Destructor Documentation

TVolFormatParam()

TVolFormatParam ( ) [inline]

Member Functions Documentation

CalcFSNameHash(const TDesC &)

TUint32 CalcFSNameHash ( const TDesC & aFsName ) [static, inline]

Calculates the file system name hash. For use in conjunction with this class only The file system name hash is a standard CRC32 on the up-cased name.

Parameters

const TDesC & aFsName given name.

FSNameHash()

TUint32 FSNameHash ( ) const [inline]

GetVal(TUint)

TUint32 GetVal ( TUint aIndex ) const [protected, inline]

Parameters

TUint aIndex

Init()

void Init ( ) [inline]

resets all data to the "not set" values

SetFileSystemName(const TDesC &)

void SetFileSystemName ( const TDesC & aFsName ) [inline]

sets the file system name hash corresponding to aFsName

Parameters

const TDesC & aFsName

SetVal(TUint, TUint32)

void SetVal ( TUint aIndex,
TUint32 aVal
) [protected, inline]

assign a data slot some integer value.

Parameters

TUint aIndex
TUint32 aVal

SomeParamsSet()

TBool SomeParamsSet ( ) const [inline]

Member Enumerations Documentation

Enum anonymous

Enumerators

KMaxDataSlots = 64

Enum anonymous

Enumerators

KUId = 0x820116A2

Member Data Documentation

TUint32 iData

TUint32 iData [private]

TUint32 iFSysNameHash

TUint32 iFSysNameHash [private]

TBool iParamsSet

TBool iParamsSet [private]

const TUint32 iUId

const TUint32 iUId

This class tree UID. Used to distinguish the object of this class from TLDFormatInfo and other possible data structures. For this and derived classes this field must be KUId. This field offset in the class must be 0