TXdmSettingsApi Class Reference

class TXdmSettingsApi

Member Functions Documentation

CollectionNamesLC(RArray< TInt > &)

IMPORT_C CDesCArray *CollectionNamesLC(RArray< TInt > &aSettingIds)[static]

Return the name of each settings collection stored in the repository

Parameters

RArray< TInt > & aSettingIds

CreateCollectionL(const CXdmSettingsCollection &)

IMPORT_C TIntCreateCollectionL(const CXdmSettingsCollection &aCollection)[static]

Set the XDM properties as a collection of settings

Parameters

const CXdmSettingsCollection & aCollection

CreatePropertyL(TInt, const TDesC &, TXdmSettingsProperty)

IMPORT_C voidCreatePropertyL(TIntaSettingsId,
const TDesC &aPropertyValue,
TXdmSettingsPropertyaPropertyName
)[static]

Create an individual property to the specified collection of properties.

NOTE:

  • Leaves with KErrAlreadyExists, if the property to be created already exists in the specified collection.

  • Leaves with KErrNotFound, if a property set by the specified ID cannot be found from the repository

Parameters

TInt aSettingsId
const TDesC & aPropertyValue
TXdmSettingsProperty aPropertyName

CreateUniqueIdL(CRepository *, TInt)

TInt CreateUniqueIdL(CRepository *aRepository,
TIntaRow
)[private, static]

Create a unique ID for a collection of settings

Parameters

CRepository * aRepository
TInt aRow

FindByIdL(TInt, CRepository *)

RArray< TUint32 >FindByIdL(TIntaSettingsId,
CRepository *aRepository
)[private, static]

Find keys by their ID

Parameters

TInt aSettingsId
CRepository * aRepository

FindByTypeL(CRepository *, TXdmSettingsProperty)

RArray< TUint32 >FindByTypeL(CRepository *aRepository,
TXdmSettingsPropertyaSingleProp
)[private, static]

Find keys by their type

Parameters

CRepository * aRepository
TXdmSettingsProperty aSingleProp

FindRowL(TInt, CRepository *)

TInt FindRowL(TIntaSettingsId,
CRepository *aRepository
)[private, static]

Find the row for the specified collection of settings

Parameters

TInt aSettingsId
CRepository * aRepository

LastRow(CRepository *)

TInt LastRow(CRepository *aRepository)[private, static]

Return the last row from the repository

Parameters

CRepository * aRepository

PropertyL(TInt, TXdmSettingsProperty)

IMPORT_C HBufC *PropertyL(TIntaSettingsId,
TXdmSettingsPropertyaSingleProp
)[static]

Return an individual XDM settings property

NOTE:

  • Leaves with KErrNotFound, if a property set by the specified ID cannot be found from the repository.

Parameters

TInt aSettingsId
TXdmSettingsProperty aSingleProp

RemoveCollectionL(TInt)

IMPORT_C voidRemoveCollectionL(TIntaSettingsId)[static]

Remove a collection from the Central Repository

NOTE:

  • Leaves with KErrNotFound if a collection of properties by the specified ID does not exist in the repository.

Parameters

TInt aSettingsId

RemovePropertyL(TInt, TXdmSettingsProperty)

IMPORT_C voidRemovePropertyL(TIntaSettingsId,
TXdmSettingsPropertyaPropertyName
)[static]

Remove an individual property from the specified collection of properties.

NOTE:

  • Leaves with KErrNotFound, if a property set by the specified ID cannot be found from the repository

Parameters

TInt aSettingsId
TXdmSettingsProperty aPropertyName

SettingsCollectionL(TInt)

IMPORT_C CXdmSettingsCollection *SettingsCollectionL(TIntaSettingsId)[static]

Return an XDM property set/collection

NOTE:

  • Leaves with KErrNotFound, if a property set by the specified ID cannot be found from the repository.

Parameters

TInt aSettingsId

UpdatePropertyL(TInt, const TDesC &, TXdmSettingsProperty)

IMPORT_C voidUpdatePropertyL(TIntaSettingsId,
const TDesC &aPropertyValue,
TXdmSettingsPropertyaPropertyName
)[static]

Update an individual property in a named property set

NOTE:

  • Leaves with KErrNotFound, if a property set by the specified ID cannot be found

  • Also note that an attempt to update a non-existent property effectively creates a new one.

Parameters

TInt aSettingsId
const TDesC & aPropertyValue
TXdmSettingsProperty aPropertyName

WriteToLog(TRefByValue< const TDesC8 >, ...)

voidWriteToLog(TRefByValue< const TDesC8 >aFmt,
...
)[private, static]

Write to the log file

Parameters

TRefByValue< const TDesC8 > aFmt
...