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

voidConstructL()[private]

CreateSettingsRecordIdL(TUint32 &)

voidCreateSettingsRecordIdL(TUint32 &aNewSettingId)

This method creates unique setting id.

Since
S60 5.0

Parameters

TUint32 & aNewSettingIdOn return contains new setting id.

FindSettingsRecordKeyL(TUint32, TUint32 &)

voidFindSettingsRecordKeyL(TUint32aSettingsRecordId,
TUint32 &aSettingsRecordKey
)

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

Since
S60 5.0

Parameters

TUint32 aSettingsRecordIdSetting id.
TUint32 & aSettingsRecordKeyIf setting id is found, this contains the setting key on return.

GetSettingsRecordkeysL(RArray< TUint32 > &)

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

voidGetSettingsRecordkeysL()[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 &)

voidNextFreeSlotL(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 & aFreeKeyOn 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.