CRemoteLockSettings Class Reference

class CRemoteLockSettings : public CBase

Interface for handling remote lock settings

rlocksettings.lib
Since
S60 3.2

Inherits from

Constructor & Destructor Documentation

CRemoteLockSettings(MRemoteLockSettingsHandler *)

CRemoteLockSettings(MRemoteLockSettingsHandler *aHandler)[private]

Constructor.

Since
S60 3.2

Parameters

MRemoteLockSettingsHandler * aHandlerClient implemented notification handler that will be called when remote lock settings are changed.

~CRemoteLockSettings()

IMPORT_C~CRemoteLockSettings()[virtual]

Member Functions Documentation

CompareLockCodesL(const TDesC &, const TDesC &)

IMPORT_C TBoolCompareLockCodesL(const TDesC &aLockCode,
const TDesC &aCorrectLockCode
)const

Compares two remote lock codes.

Since
S60 3.2

Parameters

const TDesC & aLockCodeThe lock code to compare. This should be in plain format.
const TDesC & aCorrectLockCodeThe correct lock code to compare against. This should be the one retrieved using GetLockCode(), and thus is not in plain format.

ConstructL()

voidConstructL()[private]

2nd phase constructor.

GetEnabled(TBool &)

IMPORT_C TBoolGetEnabled(TBool &aEnabled)const

Gets the current remote lock status.

Since
S60 3.2

Parameters

TBool & aEnabledFor retrieving the current remote lock status.

GetLockCode(TDes &)

IMPORT_C TBoolGetLockCode(TDes &aLockCode)const

Gets the remote lock code. Note that the retrieved remote lock code is not in plain format.

Since
S60 3.2

Parameters

TDes & aLockCodeFor retrieving the remote lock code. The length must be at least KRLStoredLockCodeLength.

GetLockCode(TDes &, TDes &)

IMPORT_C TBoolGetLockCode(TDes &aLockCode,
TDes &aLockCodeTrimmed
)const

Gets the remote lock code. Note that the retrieved remote lock code is not in plain format.

Since
S60 3.2

Parameters

TDes & aLockCodeFor retrieving the remote lock code. The length must be at least KRLStoredLockCodeLength.
TDes & aLockCodeTrimmedFor retrieving the remote lock code. The length must be at least KRLStoredLockCodeLength. Same as aLockCode, but formatted differently before storing: leading and trailing space characters removed, multiple spaces replaced with single space.

HandleNotifyGeneric(TUint32)

voidHandleNotifyGeneric(TUint32aId)[private]

From MCenRepNotifyHandler Notify handler.

Parameters

TUint32 aId

NewL(MRemoteLockSettingsHandler *)

IMPORT_C CRemoteLockSettings *NewL(MRemoteLockSettingsHandler *aHandler = NULL)[static]

Two-Phased constructor

Since
S60 3.2

Parameters

MRemoteLockSettingsHandler * aHandler = NULLClient implemented notification handler that will be called when remote lock settings are changed. If the client doesn't need notification, then no parameter needed.

NewLC(MRemoteLockSettingsHandler *)

IMPORT_C CRemoteLockSettings *NewLC(MRemoteLockSettingsHandler *aHandler = NULL)[static]

Two-Phased constructor

Since
S60 3.2

Parameters

MRemoteLockSettingsHandler * aHandler = NULLClient implemented notification handler that will be called when remote lock settings are changed. If the client doesn't need notification, then no parameter needed.

RemoteLockNotifyL(const TBool)

IMPORT_C TBoolRemoteLockNotifyL(const TBoolaNotifyEnable)

Enables or disables remote lock settings notification. If the settings are changed, the notification handler given in NewL() or NewLC() will be called.

Since
S60 3.2

Parameters

const TBool aNotifyEnableFor enabling or disabling the remote lock settings notification.

SetDisabled()

IMPORT_C TBoolSetDisabled()

Disables remote lock.

Since
S60 3.2

SetEnabledL(const TDesC &)

IMPORT_C TBoolSetEnabledL(const TDesC &aLockCode)

Enables remote lock and stores the correct remote lock code.

Since
S60 3.2

Parameters

const TDesC & aLockCodeNew remote lock code.

Member Data Documentation

MRemoteLockSettingsHandler * iHandler

MRemoteLockSettingsHandler *iHandler[private]

CCenRepNotifyHandler * iNotifyHandler

CCenRepNotifyHandler *iNotifyHandler[private]

CRepository * iSession

CRepository *iSession[private]