|
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: Logs app launch handler for Active Idle WS Plug-in. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_AIWSPLUGIN_LOGSLAUNCHANDLER_H |
|
20 #define C_AIWSPLUGIN_LOGSLAUNCHANDLER_H |
|
21 |
|
22 #include "eventhandler.h" |
|
23 #include "keyhandlertimer.h" |
|
24 |
|
25 namespace AiWsPlugin { |
|
26 |
|
27 /** |
|
28 * @ingroup group_wsplugin |
|
29 * |
|
30 * Logs app launch handler for Active Idle WS Plug-in. |
|
31 */ |
|
32 class CLogsLaunchHandler : |
|
33 public CEventHandler, |
|
34 public MHandlerTimer |
|
35 { |
|
36 public: |
|
37 |
|
38 static CLogsLaunchHandler* NewLC(); |
|
39 |
|
40 ~CLogsLaunchHandler(); |
|
41 |
|
42 private: |
|
43 |
|
44 // from base class CEventHandler |
|
45 |
|
46 void SetUiStateQuery( MUiState& aUiState ); |
|
47 |
|
48 void FocusChanged( TBool aState ); |
|
49 |
|
50 TBool OfferRawEvent(const TRawEvent& aRawEvent); |
|
51 |
|
52 // from MHandlerTimer |
|
53 |
|
54 void TimerDone(); |
|
55 |
|
56 // Construction |
|
57 |
|
58 CLogsLaunchHandler(); |
|
59 |
|
60 void ConstructL(); |
|
61 |
|
62 private: // data |
|
63 |
|
64 /// Pointer to state. Not owned. |
|
65 MUiState* iUiState; |
|
66 |
|
67 /// Timer for long key down event. Owned. |
|
68 CKeyHandlerTimer* iTimer; |
|
69 }; |
|
70 |
|
71 } // namespace AiWsPlugin |
|
72 |
|
73 |
|
74 #endif // C_AIWSPLUGIN_KEYLOCKHANDLER_H |