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);
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 Attributes | |
---|---|
const TUint32 | iUId |
Private Attributes | |
---|---|
TUint32 | iData |
TUint32 | iFSysNameHash |
TBool | iParamsSet |
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.
CRC32 name hash value
const TDesC & aFsName | given name. |
TUint32 | FSNameHash | ( | ) | const [inline] |
file system name hash that was wet by SetFileSystemName()
TUint32 | GetVal | ( | TUint | aIndex | ) | const [protected, inline] |
data from the specified slot
TUint aIndex |
void | SetFileSystemName | ( | const TDesC & | aFsName | ) | [inline] |
sets the file system name hash corresponding to aFsName
const TDesC & aFsName |
void | SetVal | ( | TUint | aIndex, |
TUint32 | aVal | |||
) | [protected, inline] |
assign a data slot some integer value.
TBool | SomeParamsSet | ( | ) | const [inline] |
ETrue if the user has set at least one parameter apart from the file sysetm name, i.e. SetVal() was called
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