CHtiCfg Class Reference

class CHtiCfg : public CBase

Inherits from

Constructor & Destructor Documentation

CHtiCfg()

CHtiCfg()[private]

Constructor.

~CHtiCfg()

IMPORT_C~CHtiCfg()[virtual]

Destructor.

Member Functions Documentation

ConstructL()

voidConstructL()[private]

Second phase construction.

GetParameterIntL(const TDesC8 &)

IMPORT_C TIntGetParameterIntL(const TDesC8 &aName)

Gets a numerical parameter value as integer.

Parameters

const TDesC8 & aNamename of the parameter whose value to get

GetParameterL(const TDesC8 &)

IMPORT_C TPtrC8GetParameterL(const TDesC8 &aName)

Gets a parameter value as descriptor.

Parameters

const TDesC8 & aNamename of the parameter whose value to get

LoadCfgL(const TDesC &, const TDesC &)

IMPORT_C voidLoadCfgL(const TDesC &aCfgFilePath,
const TDesC &aCfgFileName
)

Loads the configuration file and reads the values to iCfgParameters. Drive letter is not specified. File will be searched from all drives.

Parameters

const TDesC & aCfgFilePathabsolute path (without drive letter) to the directory from where to search the configuration file
const TDesC & aCfgFileNameconfiguration filename.

NewL()

IMPORT_C CHtiCfg *NewL()[static]

Create instance of configuration class.

NewLC()

IMPORT_C CHtiCfg *NewLC()[static]

Create instance of configuration class leaving it to cleanup stack.

RemoveParameterL(const TDesC8 &)

IMPORT_C TIntRemoveParameterL(const TDesC8 &aName)

Removes a parameter

Parameters

const TDesC8 & aNamename of the parameter to remove

SaveCfgL(const TDesC &, const TDesC &)

IMPORT_C voidSaveCfgL(const TDesC &aCfgFilePath,
const TDesC &aCfgFileName
)

Reads the values from iCfgParameters and saves them to configuration file. Drive letter is not specified. File will be searched from all drives and if not found file will be crated to c-drive.

Parameters

const TDesC & aCfgFilePathdirectory from where to search the configuration file
const TDesC & aCfgFileNameconfiguration filename.

SetParameterL(const TDesC8 &, const TDesC8 &)

IMPORT_C TIntSetParameterL(const TDesC8 &aName,
const TDesC8 &aValue
)

Sets a parameter

Parameters

const TDesC8 & aNamename of the parameter whose value to set
const TDesC8 & aValueparameter value to set

Member Data Documentation

CDesC8ArrayFlat * iCfgParameters

CDesC8ArrayFlat *iCfgParameters[private]