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

void ConstructL ( 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 & aName the 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 & aSectName Section containing key
const TDesC & aKeyName Key being searched for in aSectName
TPtrC & aResult On 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]