|
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: Status pane touch ui |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_AISTATUSPANETOUCHUI_H |
|
20 #define C_AISTATUSPANETOUCHUI_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <badesca.h> |
|
24 #include <AknNaviDecoratorObserver.h> |
|
25 #include <StringLoader.h> |
|
26 #include <eikmobs.h> |
|
27 |
|
28 #include "ainativerenderer.h" |
|
29 |
|
30 class MAiFwEventHandler; |
|
31 |
|
32 class CAknStylusPopUpMenu; |
|
33 |
|
34 namespace AiNativeUiController |
|
35 { |
|
36 |
|
37 // Stylus activated popup command ids |
|
38 enum TLinkCommandID |
|
39 { |
|
40 EAIGotoCalendarCmdLink = 1, |
|
41 EAIShowAllProfileCmdLink, |
|
42 EAIProfileCmdLink |
|
43 }; |
|
44 |
|
45 |
|
46 class CAiStatusPanel; |
|
47 |
|
48 class CAiStatusPaneTouchUi : public CAiNativeRenderer, |
|
49 public MAknNaviDecoratorObserver, |
|
50 public MEikMenuObserver |
|
51 { |
|
52 |
|
53 public: |
|
54 |
|
55 // Construction and destructor |
|
56 |
|
57 static CAiStatusPaneTouchUi* NewL( CAiStatusPanel& aStatusPanel, |
|
58 MAiFwEventHandler& aEventHandler); |
|
59 |
|
60 static CAiStatusPaneTouchUi* NewLC( CAiStatusPanel& aStatusPanel, |
|
61 MAiFwEventHandler& aEventHandler ); |
|
62 |
|
63 ~CAiStatusPaneTouchUi(); |
|
64 |
|
65 // from MAknTitlePaneObserver |
|
66 |
|
67 void HandleTitlePaneEventL( TInt aEventID ); |
|
68 |
|
69 // from MAknNaviDecoratorObserver |
|
70 |
|
71 void HandleNaviDecoratorEventL( TInt aEventID ); |
|
72 |
|
73 // from base class CAiNativeRenderer |
|
74 |
|
75 void DoPublishL( MAiPropertyExtension& aPlugin, |
|
76 TInt aContent, |
|
77 const TDesC16& aText, |
|
78 TInt aIndex ); |
|
79 |
|
80 void LoadUIDefinitionL(); |
|
81 |
|
82 // from MEikCommandObserver |
|
83 |
|
84 void ProcessCommandL( TInt aCommandId ); |
|
85 |
|
86 void SetEmphasis( CCoeControl* aMenuControl, TBool aEmphasis ); |
|
87 |
|
88 private: |
|
89 // Construction |
|
90 |
|
91 CAiStatusPaneTouchUi( CAiStatusPanel& aStatusPanel, MAiFwEventHandler& aEventHandler ); |
|
92 void ConstructL(); |
|
93 |
|
94 private: //data |
|
95 |
|
96 /// Status pane handler. |
|
97 CAiStatusPanel& iStatusPane; |
|
98 |
|
99 /// Profile name pointer array |
|
100 RPointerArray<HBufC> iProfileNamePointerArray; |
|
101 |
|
102 /// AIFW event handler |
|
103 MAiFwEventHandler& iEventHandler; |
|
104 |
|
105 ///Event buffer. |
|
106 HBufC* iEventBuffer; |
|
107 |
|
108 ///Stulys popup menu |
|
109 CAknStylusPopUpMenu* iMenu; |
|
110 }; |
|
111 |
|
112 } // namespace AiNativeUiController |
|
113 |
|
114 #endif //C_AISTATUSPANETOUCHUI_H |