|
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: Metadata dialog implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef GLXMETADATACOMMANDHANDLER_H_ |
|
20 #define GLXMETADATACOMMANDHANDLER_H_ |
|
21 |
|
22 |
|
23 #include <mglxmedialistprovider.h> |
|
24 #include <glxmedialistcommandhandler.h> |
|
25 |
|
26 //Forward Decleration |
|
27 class CGlxCommandHandlerAiwShowMap; |
|
28 class CGlxMediaListCommandHandler; |
|
29 /** |
|
30 * CGlxMetadataCommandHandler |
|
31 * |
|
32 */ |
|
33 class CGlxMetadataCommandHandler :public CGlxMediaListCommandHandler |
|
34 { |
|
35 public: |
|
36 /** |
|
37 * Two-phase constructor NewL |
|
38 * |
|
39 * @param aEnv , Hui Environment |
|
40 */ |
|
41 static CGlxMetadataCommandHandler* NewL(MGlxMediaListProvider *aMediaListProvider ); |
|
42 |
|
43 /** Destructor |
|
44 * |
|
45 */ |
|
46 ~CGlxMetadataCommandHandler(); |
|
47 |
|
48 /** OfferKeyEventL |
|
49 * |
|
50 */ |
|
51 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
|
52 |
|
53 |
|
54 public: // From CGlxMediaListCommandHandler |
|
55 /// See @ref CGlxMediaListCommandHandler::ExecuteL */ |
|
56 TBool DoExecuteL(TInt aCommandId, MGlxMediaList& aList); |
|
57 |
|
58 void PreDynInitMenuPaneL( TInt aResourceId ); |
|
59 |
|
60 void DynInitMenuPaneL( TInt aMenuId, CEikMenuPane* aMenuPane ); |
|
61 |
|
62 private: |
|
63 /** |
|
64 * 2nd phase Constructor |
|
65 */ |
|
66 void ConstructL(); |
|
67 |
|
68 /** |
|
69 * Constructor |
|
70 */ |
|
71 CGlxMetadataCommandHandler(MGlxMediaListProvider* aMediaListProvider); |
|
72 |
|
73 private: |
|
74 CGlxCommandHandlerAiwShowMap * iShowOnMapCmdHandler; |
|
75 MGlxMediaListProvider* iMediaListProvider; |
|
76 |
|
77 }; |
|
78 |
|
79 #endif /*GLXMETADATACOMMANDHANDLER_H_*/ |