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 &)

voidConstructL(const TUid &aRepositoryUid)[private]

Parameters

const TUid & aRepositoryUid

CreateNewKeyL(const TUint32, const TUint32)

TUint32 CreateNewKeyL(const TUint32aSettingKeyMask,
const TUint32aFieldMask
)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 aSettingKeyMaskKeymask for the setting
const TUint32 aFieldMaskField for the setting keymasks

FindServerKeys(TUint32, RArray< TUint32 > &)

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

Finds and returns server keys from given partialId.

Since
S60 3.2

Parameters

TUint32 aPartialIdContains a bit pattern that all the keys returned must at least partially match
RArray< TUint32 > & aFoundKeysAll 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 & aKeyID wanted to be read
TUint & aKeyValueRead 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 & aKeyID wanted to be read
TInt & aKeyValueRead 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 & aKeyID wanted to be read
TBool & aKeyValueRead 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 & aDomainDomain name which is searched from the Central Repository
TUint32 & aDomainKeyReturns discovered CR key

ReadIapSettingsKey(TInt, TUint32 &)

TInt ReadIapSettingsKey(TIntaIapId,
TUint32 &aIapKey
)const

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

Since
S60 3.2

Parameters

TInt aIapIdWhich is searched from Central Repository
TUint32 & aIapKeyReturns 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 & aKeyID wanted to be read

Member Data Documentation

CRepository * iCenRep

CRepository *iCenRep[private]

Central Repository Own.