CNATFWCenRepHandler Class Reference

class CNATFWCenRepHandler : public CBase

Class provides methods for make easier the usage of Central Repository.

natsettings.lib
Since
S60 v3.2

Inherits from

Constructor & Destructor Documentation

CNATFWCenRepHandler()

CNATFWCenRepHandler ( ) [private]

~CNATFWCenRepHandler()

~CNATFWCenRepHandler ( ) [virtual]

Destructor.

Member Functions Documentation

ConstructL(const TUid &)

void ConstructL ( const TUid & aRepositoryUid ) [private]

Parameters

const TUid & aRepositoryUid

CreateNewKeyL(const TUint32, const TUint32)

TUint32 CreateNewKeyL ( const TUint32 aSettingKeyMask,
const TUint32 aFieldMask
) const

Create new Central Repository key for setting if settings haves already keys it increase the biggest key by one

example: CR have keys 10010001 and 10010002. aSettingKeyMask = 10010000, aFieldMask = fffff000 return value = 00000003.

Since
S60 3.2
leave
KErrNone if successful or system wide error code from CR

Parameters

const TUint32 aSettingKeyMask Keymask for the setting
const TUint32 aFieldMask Field for the setting keymasks

FindServerKeys(TUint32, RArray< TUint32 > &)

TInt FindServerKeys ( TUint32 aPartialId,
RArray < TUint32 > & aFoundKeys
) const

Finds and returns server keys from given partialId.

Since
S60 3.2

Parameters

TUint32 aPartialId Contains a bit pattern that all the keys returned must at least partially match
RArray < TUint32 > & aFoundKeys All the keys found

NewL(const TUid &)

CNATFWCenRepHandler * NewL ( const TUid & aRepositoryUid ) [static]

Two-phased constructor.

Parameters

const TUid & aRepositoryUid

Read(const TUint32 &, TUint &)

TInt Read ( const TUint32 & aKey,
TUint & aKeyValue
) const

Reads TUint value from the Central Repository

Since
S60 3.2

Parameters

const TUint32 & aKey ID wanted to be read
TUint & aKeyValue Read value

Read(const TUint32 &, TInt &)

TInt Read ( const TUint32 & aKey,
TInt & aKeyValue
) const

Reads TInt value from the Central Repository

Since
S60 3.2

Parameters

const TUint32 & aKey ID wanted to be read
TInt & aKeyValue Read value

ReadBoolValue(const TUint32 &, TBool &)

TInt ReadBoolValue ( const TUint32 & aKey,
TBool & aKeyValue
) const

Reads boolean value from the Central Repository

Since
S60 3.2

Parameters

const TUint32 & aKey ID wanted to be read
TBool & aKeyValue Read value

ReadDomainSettingsKey(const TDesC8 &, TUint32 &)

TInt ReadDomainSettingsKey ( const TDesC8 & aDomain,
TUint32 & aDomainKey
) const

Reads domain settings key by using domain name for search.

Since
S60 3.2

Parameters

const TDesC8 & aDomain Domain name which is searched from the Central Repository
TUint32 & aDomainKey Returns discovered CR key

ReadIapSettingsKey(TInt, TUint32 &)

TInt ReadIapSettingsKey ( TInt aIapId,
TUint32 & aIapKey
) const

Reads IAP settings key from Central Repository using IAP ID for search.

Since
S60 3.2

Parameters

TInt aIapId Which is searched from Central Repository
TUint32 & aIapKey Returns discovered CR key

ReadL(const TUint32 &)

HBufC8 * ReadL ( const TUint32 & aKey ) const

Reads descriptor from the Central Repository

Since
S60 3.2
leave
KErrNoMemory if memory allocation fails

Parameters

const TUint32 & aKey ID wanted to be read

Member Data Documentation

CRepository * iCenRep

CRepository * iCenRep [private]

Central Repository Own.