|
1 /* |
|
2 * Copyright (c) 2008-2009 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: Hide Ui command handler |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef C_GLXCOMMANDHANDLERHIDEUI_H |
|
22 #define C_GLXCOMMANDHANDLERHIDEUI_H |
|
23 |
|
24 // INCLUDES |
|
25 |
|
26 #include <glxcommandhandler.h> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CGlxUiUtility; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * Command to hide and show the screen furniture. |
|
35 * |
|
36 * @ingroup glx_group_command_handlers |
|
37 */ |
|
38 NONSHARABLE_CLASS (CGlxCommandHandlerHideUi) : |
|
39 public CGlxCommandHandler |
|
40 { |
|
41 public: |
|
42 /** |
|
43 * Two-phased constructor. |
|
44 */ |
|
45 IMPORT_C static CGlxCommandHandlerHideUi* NewL(); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 ~CGlxCommandHandlerHideUi(); |
|
51 |
|
52 public: // From CGlxCommandHandler |
|
53 virtual TBool ExecuteL(TInt aCommand); |
|
54 virtual void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane); |
|
55 virtual void DoActivateL(TInt aViewId); |
|
56 virtual void Deactivate(); |
|
57 virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType); |
|
58 virtual void PreDynInitMenuPaneL( TInt aResourceId ); |
|
59 /** |
|
60 * See @ref MGlxCommandHandler::GetRequiredAttributesL |
|
61 * No implementation required |
|
62 */ |
|
63 void GetRequiredAttributesL(RArray< TMPXAttribute >& /*aAttributes*/, |
|
64 TBool /*aFilterUsingSelection*/, |
|
65 TBool /*aFilterUsingCommandId*/, |
|
66 TInt /*aCommandId*/) const {} |
|
67 private: |
|
68 /** |
|
69 * C++ default constructor. |
|
70 */ |
|
71 CGlxCommandHandlerHideUi(); |
|
72 |
|
73 /** |
|
74 * By default Symbian 2nd phase constructor is private. |
|
75 */ |
|
76 void ConstructL(); |
|
77 |
|
78 private: // Data |
|
79 /// ID of owning view |
|
80 TInt iViewId; |
|
81 |
|
82 /// Hui utility |
|
83 CGlxUiUtility* iUiUtility; |
|
84 |
|
85 /// Whether the command is available (only in full-screen) |
|
86 TBool iCommandAvailable; |
|
87 }; |
|
88 |
|
89 #endif // C_GLXCOMMANDHANDLERHIDEUI_H |
|
90 |
|
91 // End of File |