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(TRCSERegistryTypeaType)[protected]

Parameters

TRCSERegistryType aType

~CRCSERegistryBase()

~CRCSERegistryBase()[virtual]

Member Functions Documentation

BaseConstructL()

voidBaseConstructL()[protected]

BeginL()

voidBeginL()[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 *)

voidCleanupDbPropArray(TAny *aPointer)[protected, static]

Custom cleanup for cenrep db property array.

Since
S60 v3.2

Parameters

TAny * aPointerArray pointer

CreatePropertyL(TUint, const TDesC &, RIpAppPropArray &)

voidCreatePropertyL(TUintaPropertyName,
const TDesC &aPropertyValue,
RIpAppPropArray &aPropertyArray
)[protected]

Create CenRep db property to given property array.

Since
S60 v3.2

Parameters

TUint aPropertyNameName of created property.
const TDesC & aPropertyValueValue of created property.
RIpAppPropArray & aPropertyArrayContainer of properties.

EndL()

voidEndL()[protected]

Ends user operations. Commits transaction.

Since
S60 v3.2

FindAllIdsL(RArray< TUint32 > &)

voidFindAllIdsL(RArray< TUint32 > &aIdArray)[protected]

Search all entry IDs from CenRep database.

Since
S60 v3.2

Parameters

RArray< TUint32 > & aIdArrayContains all found entry IDs.

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

voidFindIdsByValueL(TUintaPropertyName,
const TDesC &aPropertyValue,
RArray< TUint32 > &aIdArray
)[protected]

Create CenRep db property to given property array.

Since
S60 v3.2

Parameters

TUint aPropertyNameSearh criteria.
const TDesC & aPropertyValueSearh criteria.
RArray< TUint32 > & aIdArrayContains all found entry IDs.

GetPropertyValueL(TUint, TDes &, RIpAppPropArray &)

voidGetPropertyValueL(TUintaPropertyName,
TDes &aPropertyValue,
RIpAppPropArray &aPropertyArray
)[protected]

Find value of property from given property array.

Since
S60 v3.2

Parameters

TUint aPropertyNameName of requested property.
TDes & aPropertyValueValue of requested property.
RIpAppPropArray & aPropertyArrayContainer of properties.

HandleBackupOperationEventL()

voidHandleBackupOperationEventL()

From MRCSEBackupObserver. Handle backup observer event.

Since
S60 v3.0

ImportSettingsL()

voidImportSettingsL()[protected]

Imports rcse settings from restored database file

Since
S60 v3.2

ToDes(TInt32, TDes &)

TDesC &ToDes(TInt32aFrom,
TDes &aTo
)[protected]

Helper method that converts TInt32 type to descriptor.

Since
S60 v3.2

Parameters

TInt32 aFromTInt32 value to be converted.
TDes & aToDescriptor containing the converted value.

ToDes(TUint32, TDes &)

TDesC &ToDes(TUint32aFrom,
TDes &aTo
)[protected]

Helper method that converts TUint32 type to descriptor.

Since
S60 v3.2

Parameters

TUint32 aFromTUint32 value to be converted.
TDes & aToDescriptor 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 & aFromDescriptor 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 & aFromDescriptor 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