equal
deleted
inserted
replaced
135 * @param aPos Softkey position. |
135 * @param aPos Softkey position. |
136 * @return Currently visible softkey. |
136 * @return Currently visible softkey. |
137 */ |
137 */ |
138 virtual CXnNodePluginIf* SoftKeyL( XnMenuInterface::MXnMenuInterface::TSoftKeyPosition aPos ) = 0; |
138 virtual CXnNodePluginIf* SoftKeyL( XnMenuInterface::MXnMenuInterface::TSoftKeyPosition aPos ) = 0; |
139 |
139 |
|
140 /** |
|
141 * Returns softkey node, which should handle key event. |
|
142 * @return softkey node which should handle key event, NULL if not available. |
|
143 */ |
|
144 virtual CXnNodePluginIf* KeyEventNode() = 0; |
|
145 |
140 /** |
146 /** |
141 * Sets MXnMenuObserver observer |
147 * Sets MXnMenuObserver observer |
142 * @since S60 5.1 |
148 * @since S60 5.1 |
143 * @param aObserver observer to set |
149 * @param aObserver observer to set |
144 */ |
150 */ |
150 */ |
156 */ |
151 virtual void RemoveObserver() = 0; |
157 virtual void RemoveObserver() = 0; |
152 |
158 |
153 /** |
159 /** |
154 * Tries to display menubar |
160 * Tries to display menubar |
155 * @since S60 5.1 |
161 * @since S60 5.2 |
156 * @param aMenuNodeId the menu node id |
162 * @param aMenuNodeId the menu node id |
|
163 * @param aContextMenu ETrue if context menu should be displayed, EFalse otherwise |
157 */ |
164 */ |
158 virtual void TryDisplayingMenuBarL( const TDesC& aMenuNodeId ) = 0; |
165 virtual void TryDisplayingMenuBarL( const TDesC& aMenuNodeId, TBool aContextMenu ) = 0; |
159 }; |
166 }; |
160 } |
167 } |
161 |
168 |
162 class CXnMenu : public CXnComponent, public XnMenuInterface::MXnMenuInterface |
169 class CXnMenu : public CXnComponent, public XnMenuInterface::MXnMenuInterface |
163 { |
170 { |
218 /** |
225 /** |
219 * @see MXnMenuInterface::SoftKeyL |
226 * @see MXnMenuInterface::SoftKeyL |
220 */ |
227 */ |
221 CXnNodePluginIf* SoftKeyL( XnMenuInterface::MXnMenuInterface::TSoftKeyPosition aPos ); |
228 CXnNodePluginIf* SoftKeyL( XnMenuInterface::MXnMenuInterface::TSoftKeyPosition aPos ); |
222 |
229 |
|
230 /** |
|
231 * @see MXnMenuInterface::KeyEventNode |
|
232 */ |
|
233 CXnNodePluginIf* KeyEventNode(); |
|
234 |
223 /** |
235 /** |
224 * @see MXnMenuInterface::SetObserver |
236 * @see MXnMenuInterface::SetObserver |
225 */ |
237 */ |
226 void SetObserver( XnMenuInterface::MXnMenuObserver& aObserver ); |
238 void SetObserver( XnMenuInterface::MXnMenuObserver& aObserver ); |
227 |
239 |
231 void RemoveObserver(); |
243 void RemoveObserver(); |
232 |
244 |
233 /** |
245 /** |
234 * @see MXnMenuInterface::TryDisplayingMenuBarL |
246 * @see MXnMenuInterface::TryDisplayingMenuBarL |
235 */ |
247 */ |
236 void TryDisplayingMenuBarL( const TDesC& aMenuNodeId ); |
248 void TryDisplayingMenuBarL( const TDesC& aMenuNodeId, TBool aContextMenu ); |
237 |
249 |
238 |
|
239 /** |
250 /** |
240 * @see MXnComponentInterface::MakeInterfaceL |
251 * @see MXnComponentInterface::MakeInterfaceL |
241 */ |
252 */ |
242 XnComponentInterface::MXnComponentInterface* MakeInterfaceL( const TDesC8& aType ); |
253 XnComponentInterface::MXnComponentInterface* MakeInterfaceL( const TDesC8& aType ); |
|
254 |
243 private: |
255 private: |
244 |
256 |
245 /** |
257 /** |
246 * C++ default constructor. |
258 * C++ default constructor. |
247 */ |
259 */ |