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