CXmppSettingsRecord Class Reference

class CXmppSettingsRecord : public CBase

This class is used for data table manipulations.

This class contains all methods needed to read and write to settings id table.

jabbersettings.lib
Since
S60 5.0

Inherits from

Constructor & Destructor Documentation

CXmppSettingsRecord(CRepository &)

CXmppSettingsRecord ( CRepository & aRepository ) [private]

Default Contructor

Parameters

CRepository & aRepository

~CXmppSettingsRecord()

~CXmppSettingsRecord ( ) [virtual]

Destructor

Member Functions Documentation

ConstructL()

void ConstructL ( ) [private]

CreateSettingsRecordIdL(TUint32 &)

void CreateSettingsRecordIdL ( TUint32 & aNewSettingId )

This method creates unique setting id.

Since
S60 5.0

Parameters

TUint32 & aNewSettingId On return contains new setting id.

FindSettingsRecordKeyL(TUint32, TUint32 &)

void FindSettingsRecordKeyL ( TUint32 aSettingsRecordId,
TUint32 & aSettingsRecordKey
)

This method checks does this setting id exist. Leaves with KErrNotFound if it does not.

Since
S60 5.0

Parameters

TUint32 aSettingsRecordId Setting id.
TUint32 & aSettingsRecordKey If setting id is found, this contains the setting key on return.

GetSettingsRecordkeysL(RArray< TUint32 > &)

void GetSettingsRecordkeysL ( RArray < TUint32 > & aResults )

This method fids all setting keys.

Since
S60 5.0 @param aSettingsRecordKeys On return contains all setting keys.

Parameters

RArray < TUint32 > & aResults

GetSettingsRecordkeysL()

void GetSettingsRecordkeysL ( ) [private]

This method fids all setting keys. It fills the internal array with unique ids.

Since
S60 5.0

NewL(CRepository &)

CXmppSettingsRecord * NewL ( CRepository & aRepository ) [static]

Two-phased constructor.

Parameters

CRepository & aRepository

NewLC(CRepository &)

CXmppSettingsRecord * NewLC ( CRepository & aRepository ) [static]

Parameters

CRepository & aRepository

NextFreeSlotL(TUint32 &)

void NextFreeSlotL ( TUint32 & aFreeKey ) [private]

This method returns next available slot for settings record. It can be new index or it can use deleted slot.

Since
S60 5.0

Parameters

TUint32 & aFreeKey On return contains the next free key.

Member Data Documentation

CRepository & iRepository

CRepository & iRepository [private]

Handle to the Central Repository.

RArray< TUint32 > iSettingsRecordKeyArray

RArray < TUint32 > iSettingsRecordKeyArray [private]

Contains setting id keys.