class TXdmSettingsApi |
Public Member Functions | |
---|---|
IMPORT_C CDesCArray * | CollectionNamesLC ( RArray < TInt > &) |
IMPORT_C TInt | CreateCollectionL (const CXdmSettingsCollection &) |
IMPORT_C void | CreatePropertyL ( TInt , const TDesC &, TXdmSettingsProperty ) |
IMPORT_C HBufC * | PropertyL ( TInt , TXdmSettingsProperty ) |
IMPORT_C void | RemoveCollectionL ( TInt ) |
IMPORT_C void | RemovePropertyL ( TInt , TXdmSettingsProperty ) |
IMPORT_C CXdmSettingsCollection * | SettingsCollectionL ( TInt ) |
IMPORT_C void | UpdatePropertyL ( TInt , const TDesC &, TXdmSettingsProperty ) |
Private Member Functions | |
---|---|
TInt | CreateUniqueIdL ( CRepository *, TInt ) |
RArray < TUint32 > | FindByIdL ( TInt , CRepository *) |
RArray < TUint32 > | FindByTypeL ( CRepository *, TXdmSettingsProperty ) |
TInt | FindRowL ( TInt , CRepository *) |
TInt | LastRow ( CRepository *) |
void | WriteToLog ( TRefByValue < const TDesC8 >, ...) |
IMPORT_C CDesCArray * | CollectionNamesLC | ( | RArray < TInt > & | aSettingIds | ) | [static] |
Return the name of each settings collection stored in the repository
IMPORT_C TInt | CreateCollectionL | ( | const CXdmSettingsCollection & | aCollection | ) | [static] |
Set the XDM properties as a collection of settings
const CXdmSettingsCollection & aCollection |
IMPORT_C void | CreatePropertyL | ( | TInt | aSettingsId, |
const TDesC & | aPropertyValue, | |||
TXdmSettingsProperty | aPropertyName | |||
) | [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
TInt | CreateUniqueIdL | ( | CRepository * | aRepository, |
TInt | aRow | |||
) | [private, static] |
Create a unique ID for a collection of settings
CRepository * aRepository | |
TInt aRow |
RArray < TUint32 > | FindByIdL | ( | TInt | aSettingsId, |
CRepository * | aRepository | |||
) | [private, static] |
Find keys by their ID
TInt aSettingsId | |
CRepository * aRepository |
RArray < TUint32 > | FindByTypeL | ( | CRepository * | aRepository, |
TXdmSettingsProperty | aSingleProp | |||
) | [private, static] |
Find keys by their type
CRepository * aRepository | |
TXdmSettingsProperty aSingleProp |
TInt | FindRowL | ( | TInt | aSettingsId, |
CRepository * | aRepository | |||
) | [private, static] |
Find the row for the specified collection of settings
TInt aSettingsId | |
CRepository * aRepository |
TInt | LastRow | ( | CRepository * | aRepository | ) | [private, static] |
Return the last row from the repository
CRepository * aRepository |
IMPORT_C HBufC * | PropertyL | ( | TInt | aSettingsId, |
TXdmSettingsProperty | aSingleProp | |||
) | [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.
TInt aSettingsId | |
TXdmSettingsProperty aSingleProp |
IMPORT_C void | RemoveCollectionL | ( | TInt | aSettingsId | ) | [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.
TInt aSettingsId |
IMPORT_C void | RemovePropertyL | ( | TInt | aSettingsId, |
TXdmSettingsProperty | aPropertyName | |||
) | [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
TInt aSettingsId | |
TXdmSettingsProperty aPropertyName |
IMPORT_C CXdmSettingsCollection * | SettingsCollectionL | ( | TInt | aSettingsId | ) | [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.
TInt aSettingsId |
IMPORT_C void | UpdatePropertyL | ( | TInt | aSettingsId, |
const TDesC & | aPropertyValue, | |||
TXdmSettingsProperty | aPropertyName | |||
) | [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.
void | WriteToLog | ( | TRefByValue < const TDesC8 > | aFmt, |
... | ||||
) | [private, static] |
Write to the log file
TRefByValue < const TDesC8 > aFmt | |
... |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.