|
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: Active Idle Window Server Plug-in. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef C_AIWSPLUGINANIM_H |
|
19 #define C_AIWSPLUGINANIM_H |
|
20 |
|
21 #include <w32adll.h> |
|
22 #include "aiwspluginanimdef.h" |
|
23 #include "uistate.h" |
|
24 #include "modifierkeytracker.h" |
|
25 |
|
26 namespace AiWsPlugin |
|
27 { |
|
28 class CEventHandler; |
|
29 } |
|
30 |
|
31 typedef MAnimGeneralFunctionsWindowExtension::TWindowGroupInfo TIdPlgWindowGroupInfo; |
|
32 |
|
33 /** |
|
34 * @ingroup group_wsplugin |
|
35 * |
|
36 * Active Idle Window Server Plug-in. |
|
37 * |
|
38 * @since 3.2 |
|
39 */ |
|
40 class CAiWsPluginAnim : |
|
41 public CWindowAnim, public AiWsPlugin::MUiState |
|
42 { |
|
43 public: // Constructors and destructors |
|
44 |
|
45 /** |
|
46 * Constructor. |
|
47 */ |
|
48 CAiWsPluginAnim(); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 ~CAiWsPluginAnim(); |
|
54 |
|
55 // From base class CWindowAnim |
|
56 |
|
57 TInt CommandReplyL( TInt aOpcode, TAny* aArgs ); |
|
58 |
|
59 void Command( TInt aOpcode, TAny* aArgs ); |
|
60 |
|
61 void Animate( TDateTime* aDateTime ); |
|
62 |
|
63 void ConstructL( TAny* aArgs, TBool aHasFocus ); |
|
64 |
|
65 void Redraw(); |
|
66 |
|
67 void FocusChanged( TBool aState ); |
|
68 |
|
69 TBool OfferRawEvent( const TRawEvent& aRawEvent ); |
|
70 |
|
71 // From base class MUiState |
|
72 |
|
73 TUint Modifiers() const; |
|
74 |
|
75 TBool HasFocus() const; |
|
76 |
|
77 private: // Implementation |
|
78 |
|
79 void AddEventHandlerAndPopL( AiWsPlugin::CEventHandler* aEventHandler ); |
|
80 |
|
81 private: // Data |
|
82 |
|
83 /// Event handlers. Own. |
|
84 RPointerArray< AiWsPlugin::CEventHandler > iEventHandlers; |
|
85 |
|
86 /// Window group ids passed as construction parameters |
|
87 TAiWsPluginAnimInitData iWgInfo; |
|
88 |
|
89 /// Active Idle Focus status |
|
90 TBool iAiFocused; |
|
91 |
|
92 /// Modifier key tracker |
|
93 AiWsPlugin::TModifierKeyTracker iModifierTracker; |
|
94 }; |
|
95 |
|
96 #endif // C_AIWSPLUGINANIM_H |
|
97 |