|
1 /* |
|
2 * Copyright (c) 2002-2005 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: Plugin menu manager class header |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 #ifndef C_AKNFEPPLUGINMENUMANAGER_H |
|
30 #define C_AKNFEPPLUGINMENUMANAGER_H |
|
31 |
|
32 //Include |
|
33 #include <aknfepuimenus.h> |
|
34 |
|
35 //Foward declaration |
|
36 class CAknFepManager; |
|
37 |
|
38 /** |
|
39 * Class of management of menu launched by plugin IME |
|
40 * |
|
41 * @since S60 v3.2 |
|
42 */ |
|
43 class CAknFepPluginMenuManager: public CBase, public MAknFepUiInterfaceMenuObserver |
|
44 { |
|
45 public: |
|
46 /** |
|
47 * Symbian constructor. |
|
48 * |
|
49 * @since S60 v3.2 |
|
50 * @return Pointer to created CAknFepPluginMenuManager object |
|
51 */ |
|
52 static CAknFepPluginMenuManager* NewL(CAknFepManager* aManager); |
|
53 |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 ~CAknFepPluginMenuManager(); |
|
58 |
|
59 public: |
|
60 /** |
|
61 * Show speicfied menu pane |
|
62 * |
|
63 * @since S60 v3.2 |
|
64 * @param aResourceId Menu resource id. |
|
65 * @return |
|
66 */ |
|
67 void ShowL(TInt aResourceId); |
|
68 |
|
69 /** |
|
70 * Get menu show status |
|
71 * |
|
72 * @since S60 v3.2 |
|
73 * @return ETrue if show, otherwise EFalse. |
|
74 */ |
|
75 TBool IsShowing(); |
|
76 |
|
77 /** |
|
78 * Hide current showed menu. |
|
79 * |
|
80 * @since S60 v3.2 |
|
81 * @return None. |
|
82 */ |
|
83 void Hide(); |
|
84 |
|
85 /** |
|
86 * Get current menu resource id. |
|
87 * |
|
88 * @since S60 v3.2 |
|
89 * @return Resource id. |
|
90 */ |
|
91 TInt MenuPaneId(); |
|
92 |
|
93 public: |
|
94 // MAknFepUiInterfaceMenuObserver |
|
95 /** |
|
96 * Called when menu get or lose focus. |
|
97 * The function does nothing, for FEP will handle menu command anyway. |
|
98 * @since S60 v3.2 |
|
99 * @param aMenuControl The menu control |
|
100 * @param aEmphasis ETrue to emphasize the menu, EFalse otherwise |
|
101 * @return None. |
|
102 */ |
|
103 virtual void SetEmphasis(CBase* aMenuControl, TBool aEmphasis); |
|
104 |
|
105 /** |
|
106 * Process command user selects. |
|
107 * The function does nothing, for FEP will handle menu command anyway. |
|
108 * @since S60 v3.2 |
|
109 * @param |
|
110 * @return None. |
|
111 */ |
|
112 virtual void ProcessCommandL(TInt aCommandId); |
|
113 |
|
114 private: |
|
115 /** |
|
116 * C++ default constructor. |
|
117 * |
|
118 * @param aFepManager Fep manager object. |
|
119 */ |
|
120 CAknFepPluginMenuManager(CAknFepManager* aFepManager); |
|
121 |
|
122 private: |
|
123 /** |
|
124 * Current menu bar. Own. |
|
125 */ |
|
126 CAknFepUiInterfaceMenuBar* iOptionMenuBar; |
|
127 /** |
|
128 * Fep manager. Not own. |
|
129 */ |
|
130 CAknFepManager* iFepManager; |
|
131 }; |
|
132 |
|
133 #endif |
|
134 |
|
135 // End of file |