CRCSERegistryBase Class Reference

class CRCSERegistryBase : public CBase

Base class for RCSE registry classes

Encapsules settings repository connections and handles backup events.

rcse.lib
Since
S60 v3.0

Inherits from

Constructor & Destructor Documentation

CRCSERegistryBase(TRCSERegistryType)

CRCSERegistryBase ( TRCSERegistryType aType ) [protected]

Parameters

TRCSERegistryType aType

~CRCSERegistryBase()

~CRCSERegistryBase ( ) [virtual]

Member Functions Documentation

BaseConstructL()

void BaseConstructL ( ) [protected]

BeginL()

void BeginL ( ) [protected]

Prepares operation. Checks that there is not backup/restore opearation ongoing and begins transaction.

Since
S60 v3.2
leave
KErrNotReady if there is backuoperation ongoing.
leave
KErrLocked if there is write operation already ongoing.

CleanupDbPropArray(TAny *)

void CleanupDbPropArray ( TAny * aPointer ) [protected, static]

Custom cleanup for cenrep db property array.

Since
S60 v3.2

Parameters

TAny * aPointer Array pointer

CreatePropertyL(TUint, const TDesC &, RIpAppPropArray &)

void CreatePropertyL ( TUint aPropertyName,
const TDesC & aPropertyValue,
RIpAppPropArray & aPropertyArray
) [protected]

Create CenRep db property to given property array.

Since
S60 v3.2

Parameters

TUint aPropertyName Name of created property.
const TDesC & aPropertyValue Value of created property.
RIpAppPropArray & aPropertyArray Container of properties.

EndL()

void EndL ( ) [protected]

Ends user operations. Commits transaction.

Since
S60 v3.2

FindAllIdsL(RArray< TUint32 > &)

void FindAllIdsL ( RArray < TUint32 > & aIdArray ) [protected]

Search all entry IDs from CenRep database.

Since
S60 v3.2

Parameters

RArray < TUint32 > & aIdArray Contains all found entry IDs.

FindIdsByValueL(TUint, const TDesC &, RArray< TUint32 > &)

void FindIdsByValueL ( TUint aPropertyName,
const TDesC & aPropertyValue,
RArray < TUint32 > & aIdArray
) [protected]

Create CenRep db property to given property array.

Since
S60 v3.2

Parameters

TUint aPropertyName Searh criteria.
const TDesC & aPropertyValue Searh criteria.
RArray < TUint32 > & aIdArray Contains all found entry IDs.

GetPropertyValueL(TUint, TDes &, RIpAppPropArray &)

void GetPropertyValueL ( TUint aPropertyName,
TDes & aPropertyValue,
RIpAppPropArray & aPropertyArray
) [protected]

Find value of property from given property array.

Since
S60 v3.2

Parameters

TUint aPropertyName Name of requested property.
TDes & aPropertyValue Value of requested property.
RIpAppPropArray & aPropertyArray Container of properties.

HandleBackupOperationEventL()

void HandleBackupOperationEventL ( )

From MRCSEBackupObserver . Handle backup observer event.

Since
S60 v3.0

ImportSettingsL()

void ImportSettingsL ( ) [protected]

Imports rcse settings from restored database file

Since
S60 v3.2

ToDes(TInt32, TDes &)

TDesC & ToDes ( TInt32 aFrom,
TDes & aTo
) [protected]

Helper method that converts TInt32 type to descriptor.

Since
S60 v3.2

Parameters

TInt32 aFrom TInt32 value to be converted.
TDes & aTo Descriptor containing the converted value.

ToDes(TUint32, TDes &)

TDesC & ToDes ( TUint32 aFrom,
TDes & aTo
) [protected]

Helper method that converts TUint32 type to descriptor.

Since
S60 v3.2

Parameters

TUint32 aFrom TUint32 value to be converted.
TDes & aTo Descriptor containing the converted value.

ToTInt32L(const TDesC &)

TInt32 ToTInt32L ( const TDesC & aFrom ) [protected]

Helper method that converts descriptor type to TInt32.

Since
S60 v3.2

Parameters

const TDesC & aFrom Descriptor to be converted.

ToTUint32L(const TDesC &)

TUint32 ToTUint32L ( const TDesC & aFrom ) [protected]

Helper method that converts descriptor type to TUint32.

Since
S60 v3.2

Parameters

const TDesC & aFrom Descriptor to be converted.

Member Enumerations Documentation

Enum TItemType

Item types in settings table

Enumerators

EItemUnknown = 0
EItemDeleted = 1
EItemVoIPEntry = 2
EItemCodecEntry = 3
EItemAttribute = 4

Enum TRCSERegistryType

Registry type

Enumerators

EUnknown
EVoIPProfile
ESIPSetting
EAudioCodecSetting
ESCCPProfile

Member Data Documentation

TBool iBackupActive

TBool iBackupActive [protected]

Backup flag

CRCSEBackupObserver * iBackupObserver

CRCSEBackupObserver * iBackupObserver [protected]

Backup observer Own.

CCenRepDatabaseUtil * iCenRepDb

CCenRepDatabaseUtil * iCenRepDb [protected]

Interface to RCSE's settings storage Own.

TRCSERegistryType iType

TRCSERegistryType iType [protected]

Registry type of this object