| class CKeyLockPolicyApi : public CBase |
CKeyLockPolicyApi . Trough CKeyLockPolicyApi users can
| Public Member Functions | |
|---|---|
| ~CKeyLockPolicyApi () | |
| IMPORT_C TInt | AddKeyCombination ( TUint32 , TUint32 ) |
| IMPORT_C TInt | ClearKeycombinations () |
| IMPORT_C TInt | DisableKeyguardFeature () |
| IMPORT_C TInt | EnableKeyguardFeature () |
| IMPORT_C TInt | GetKeyCombination ( TInt , TUint32 &, TUint32 &) |
| IMPORT_C TUint | GetLastPrimaryKey () |
| IMPORT_C TBool | HandleKeyEventL (const TKeyEvent &, const TEventCode ) |
| IMPORT_C TBool | HasConfiguration () |
| IMPORT_C static TBool | KeyguardAllowed () |
| IMPORT_C CKeyLockPolicyApi * | NewL ( TLockPolicyType ) |
| IMPORT_C TBool | PrimaryKeyPressed () |
| IMPORT_C TInt | RemoveKeyCombination ( TUint32 , TUint32 ) |
| Private Member Functions | |
|---|---|
| CKeyLockPolicyApi () | |
| void | ConstructL ( TLockPolicyType ) |
| Private Attributes | |
|---|---|
| CKeyLockPolicyApiImpl * | iKeylockpolicyImplementation |
| CKeyLockPolicyApi | ( | ) | [private] |
C++ default constructor (private so cannot be derived).
| IMPORT_C TInt | AddKeyCombination | ( | TUint32 | aPrimaryKey, |
| TUint32 | aSecondaryKey | |||
| ) | ||||
Adds a key combination for the policy type defined in the construction.
| IMPORT_C TInt | ClearKeycombinations | ( | ) |
Clears all the defined key combinations from the policy.
| void | ConstructL | ( | TLockPolicyType | aType | ) | [private] |
Second constructor initializes the policy
| TLockPolicyType aType |
| IMPORT_C TInt | DisableKeyguardFeature | ( | ) |
Disables support for keyguard feature so the phone keys cannot be locked with keyguard. Does not affect the devicelock.
| IMPORT_C TInt | EnableKeyguardFeature | ( | ) |
Activates support for keyguard feature so the phone keys cannot be locked with keyguard. Does not affect the devicelock.
| IMPORT_C TInt | GetKeyCombination | ( | TInt | aIndex, |
| TUint32 & | aPrimaryKey, | |||
| TUint32 & | aSecondaryKey | |||
| ) | ||||
Retrieve a key combination on the given index.
| IMPORT_C TUint | GetLastPrimaryKey | ( | ) |
Returns Primary key scan code that has been pressed last.
| IMPORT_C TBool | HandleKeyEventL | ( | const TKeyEvent & | aKeyEvent, |
| const TEventCode | aType | |||
| ) | ||||
Handles Key events, returns ETrue the key events match any of the defined key combinations. Only uses scancodes with type EEventKeyDown.
| const TKeyEvent & aKeyEvent | |
| const TEventCode aType |
| IMPORT_C TBool | HasConfiguration | ( | ) |
If no policy has been defined for the type it cannot be used.
| IMPORT_C static TBool | KeyguardAllowed | ( | ) | [static] |
Whether keyguard feature is currently enabled or disabled.
| IMPORT_C CKeyLockPolicyApi * | NewL | ( | TLockPolicyType | aType | ) | [static] |
Use this to create keylock policy
| TLockPolicyType aType |
| IMPORT_C TBool | PrimaryKeyPressed | ( | ) |
Returns true if primary button is pressed and note should be shown.
| IMPORT_C TInt | RemoveKeyCombination | ( | TUint32 | aPrimaryKey, |
| TUint32 | aSecondaryKey | |||
| ) | ||||
Removes a key combination for the policy type defined in the construction.
| CKeyLockPolicyApiImpl * | iKeylockpolicyImplementation | [private] |
Actual implemetation.
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.