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()

void ConstructL ( ) [private]

Second phase construction.

GetParameterIntL(const TDesC8 &)

IMPORT_C TInt GetParameterIntL ( const TDesC8 & aName )

Gets a numerical parameter value as integer.

Parameters

const TDesC8 & aName name of the parameter whose value to get

GetParameterL(const TDesC8 &)

IMPORT_C TPtrC8 GetParameterL ( const TDesC8 & aName )

Gets a parameter value as descriptor.

Parameters

const TDesC8 & aName name of the parameter whose value to get

LoadCfgL(const TDesC &, const TDesC &)

IMPORT_C void LoadCfgL ( 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 & aCfgFilePath absolute path (without drive letter) to the directory from where to search the configuration file
const TDesC & aCfgFileName configuration 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 TInt RemoveParameterL ( const TDesC8 & aName )

Removes a parameter

Parameters

const TDesC8 & aName name of the parameter to remove

SaveCfgL(const TDesC &, const TDesC &)

IMPORT_C void SaveCfgL ( 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 & aCfgFilePath directory from where to search the configuration file
const TDesC & aCfgFileName configuration filename.

SetParameterL(const TDesC8 &, const TDesC8 &)

IMPORT_C TInt SetParameterL ( const TDesC8 & aName,
const TDesC8 & aValue
)

Sets a parameter

Parameters

const TDesC8 & aName name of the parameter whose value to set
const TDesC8 & aValue parameter value to set

Member Data Documentation

CDesC8ArrayFlat * iCfgParameters

CDesC8ArrayFlat * iCfgParameters [private]