CIniFileData Class Reference

class CIniFileData : public CBase

Defines an interface to access the ini data file

Inherits from

Constructor & Destructor Documentation

CIniFileData()

CIniFileData()[private]

Constructor

~CIniFileData()

~CIniFileData()[virtual]

Destructor.

Frees the resources located in second-phase constructor

Member Functions Documentation

ConstructL(const TDesC &)

voidConstructL(const TDesC &aName)[private]

Second-phase constructor.

The function attempts to allocate a buffer and Read file's contents into iPtr

leave
One of the system-wide error codes

Parameters

const TDesC & aNamethe name of the file which contains the ini data

FindVar(const TDesC &, const TDesC &, TPtrC &)

TBool FindVar(const TDesC &aSectName,
const TDesC &aKeyName,
TPtrC &aResult
)

Find a text value from given aKeyName and aSecName in the ini data file

Parameters

const TDesC & aSectNameSection containing key
const TDesC & aKeyNameKey being searched for in aSectName
TPtrC & aResultOn return, contains the text result

NewL(const TDesC &)

CIniFileData *NewL(const TDesC &aName)[static]

Creates, and returns a pointer to CIniFileData object, leave on failure

Parameters

const TDesC & aName

Member Data Documentation

HBufC * iName

HBufC *iName[private]

TPtr iPtr

TPtr iPtr[private]

HBufC * iToken

HBufC *iToken[private]