CKeyLockPolicyApiImpl Class Reference
class CKeyLockPolicyApiImpl : public CBase |
Keylock policy component supports three policy types:
EPolicyActivateKeyguard keys used for keyguard locking EPolicyDeactivateKeyguard keys used for keyguard unlocking EPolicyDevicelockQuery keys used for showing devicelock query CKeyLockPolicyApi. Trough CKeyLockPolicyApi users can
keylockpolicy.lib
- Since
- 3.2
Constructor & Destructor Documentation
CKeyLockPolicyApiImpl(TLockPolicyType)
C++ default constructor (private so cannot be derived).
Member Functions Documentation
AddKeyCombination(TUint32, TUint32)
Adds a key combination for the policy type defined in the construction.
ClearKeycombinations()
TInt
| ClearKeycombinations | ( | ) | |
Clears all the defined key combinations from the policy.
ConstructL()
void | ConstructL | ( | ) | [private] |
Second constructor initializes the policy
DisableKeyguardFeature()
TInt
| DisableKeyguardFeature | ( | ) | |
Disables support for keyguard feature so the phone keys cannot be locked with keyguard. Does not affect the devicelock.
EnableKeyguardFeature()
TInt
| EnableKeyguardFeature | ( | ) | |
Activates support for keyguard feature so the phone keys cannot be locked with keyguard. Does not affect the devicelock.
FindKeyCombinationIndex(TUint32, TUint32, TInt &)
GetKeyCombination(TInt, TUint32 &, TUint32 &)
Retrieve a key combination on the given index.
GetLastPrimaryKey()
TUint
| GetLastPrimaryKey | ( | ) | |
Returns Primary key scan code that has been pressed last.
GetNewKeyCombinationIndex(TInt &)
TInt
| GetNewKeyCombinationIndex | ( | TInt & | aIndex | ) | [private] |
HandleKeyEventL(const TKeyEvent &, const TEventCode)
Handles Key events, returns ETrue the key events match any of the defined key combinations. Only uses scancodes with type EEventKeyDown.
HandleKeyLockTimerTimeout(TAny *)
TInt
| HandleKeyLockTimerTimeout | ( | TAny * | aSelf | ) | [private, static] |
A call back to the keylock timer param TAny aSelf a pointer to the parent class
HandleNotifyInt(TUint32, TInt)
void | HandleNotifyInt | ( | TUint32 | aId, |
| TInt | aNewValue |
| ) | [private] |
HasConfiguration()
If no policy has been defined for the type it cannot be used.
KeyguardAllowed()
TBool
| KeyguardAllowed | ( | ) | [static] |
Whether keyguard feature is currently enabled or disabled.
NewL(TLockPolicyType)
Use this to create keylock policy
PrimaryKeyPressed()
TBool
| PrimaryKeyPressed | ( | ) | |
Returns true if primary button is pressed and note should be shown.
RemoveKeyCombination(TUint32, TUint32)
Removes a key combination for the policy type defined in the construction.
SetKeyCombination(TUint32, TUint32, TInt)
Member Data Documentation
CCenRepNotifyHandler * iAllowNotif
TBool
iInitialised
TBool
| iInitialised | [private] |
CPeriodic * iKeyLockTimer
TUint
iLastPrimaryKeyIndex
TUint
| iLastPrimaryKeyIndex | [private] |
CCenRepNotifyHandler * iModeNotif
TBool
iPrimaryKeyDown
TBool
| iPrimaryKeyDown | [private] |
RArray< TUint > iPrimaryKeys
RArray< TUint > iSecondaryKeys
RArray< TUint > iWaitingKeys
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.