CKeyLockPolicyApi Class Reference
class CKeyLockPolicyApi : public CBase |
Constructor & Destructor Documentation
CKeyLockPolicyApi()
CKeyLockPolicyApi | ( | ) | [private] |
C++ default constructor (private so cannot be derived).
~CKeyLockPolicyApi()
IMPORT_C | ~CKeyLockPolicyApi | ( | ) | |
Member Functions Documentation
AddKeyCombination(TUint32, TUint32)
Adds a key combination for the policy type defined in the construction.
ClearKeycombinations()
IMPORT_C TInt | ClearKeycombinations | ( | ) | |
Clears all the defined key combinations from the policy.
ConstructL(TLockPolicyType)
Second constructor initializes the policy
DisableKeyguardFeature()
IMPORT_C TInt | DisableKeyguardFeature | ( | ) | |
Disables support for keyguard feature so the phone keys cannot be locked with keyguard. Does not affect the devicelock.
EnableKeyguardFeature()
IMPORT_C TInt | EnableKeyguardFeature | ( | ) | |
Activates support for keyguard feature so the phone keys cannot be locked with keyguard. Does not affect the devicelock.
GetKeyCombination(TInt, TUint32 &, TUint32 &)
Retrieve a key combination on the given index.
GetLastPrimaryKey()
IMPORT_C TUint | GetLastPrimaryKey | ( | ) | |
Returns Primary key scan code that has been pressed last.
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.
HasConfiguration()
IMPORT_C TBool | HasConfiguration | ( | ) | |
If no policy has been defined for the type it cannot be used.
KeyguardAllowed()
IMPORT_C static TBool | KeyguardAllowed | ( | ) | [static] |
Whether keyguard feature is currently enabled or disabled.
NewL(TLockPolicyType)
Use this to create keylock policy
PrimaryKeyPressed()
IMPORT_C 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.
Member Data Documentation
CKeyLockPolicyApiImpl * iKeylockpolicyImplementation
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.