1 /* |
|
2 * Copyright (c) 2005-2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Keylock handler settings class and control interface for |
|
15 * Active Idle WS Plug-in. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef M_AIWSPLUGIN_KEYLOCKCONTROL_H |
|
21 #define M_AIWSPLUGIN_KEYLOCKCONTROL_H |
|
22 |
|
23 #include <e32def.h> |
|
24 class TRawEvent; |
|
25 |
|
26 namespace AiWsPlugin { |
|
27 |
|
28 class TKeypadSettings; |
|
29 class TKeylockState; |
|
30 |
|
31 /** |
|
32 * @ingroup group_wsplugin |
|
33 * |
|
34 * Callback interface for CKeyLockHandler internal states. |
|
35 */ |
|
36 class MKeyLockHandlerControl |
|
37 { |
|
38 public: |
|
39 |
|
40 virtual const TKeypadSettings& Settings() const = 0; |
|
41 |
|
42 virtual void StartTimeoutTimer( TInt aTimeout = -1 ) = 0; |
|
43 |
|
44 virtual void StopTimeoutTimer() = 0; |
|
45 |
|
46 virtual void ActivateKeypadLock() = 0; |
|
47 |
|
48 virtual void CancelKeypadLock() = 0; |
|
49 |
|
50 virtual void KeypadLockTimeout() = 0; |
|
51 |
|
52 virtual void SetNextState( const TKeylockState& aState ) = 0; |
|
53 |
|
54 virtual void ActivateNextState() = 0; |
|
55 |
|
56 virtual void SetLastLockKeyScanCode( TInt aScanCode ) = 0; |
|
57 |
|
58 virtual TInt LastLockKeyScanCode() const = 0; |
|
59 |
|
60 virtual TBool HasFocus() = 0; |
|
61 |
|
62 virtual TBool TimeoutTimerActive() = 0; |
|
63 |
|
64 virtual TBool IsFirstLockKey( TInt aScanCode ) = 0; |
|
65 |
|
66 virtual TBool IsSecondLockKey( TInt aScanCode ) = 0; |
|
67 |
|
68 |
|
69 protected: |
|
70 /** |
|
71 * Protected dtor prevents deletion through this interface. |
|
72 */ |
|
73 ~MKeyLockHandlerControl() { } |
|
74 }; |
|
75 |
|
76 } // namespace AiWsPlugin |
|
77 |
|
78 #endif // M_AIWSPLUGIN_KEYLOCKCONTROL_H |
|