|
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: Details commmand handler |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __C_GLXCOMMANDHANDLERDETAILS_H__ |
|
22 #define __C_GLXCOMMANDHANDLERDETAILS_H__ |
|
23 |
|
24 #include <e32base.h> |
|
25 #include <glxmedialistcommandhandler.h> |
|
26 |
|
27 class MGlxMediaListProvider; |
|
28 |
|
29 class CGlxUiUtility; |
|
30 |
|
31 /** |
|
32 * Command handler for viewing Details |
|
33 */ |
|
34 NONSHARABLE_CLASS (CGlxCommandHandlerDetails) |
|
35 : public CGlxMediaListCommandHandler |
|
36 { |
|
37 public: |
|
38 /** |
|
39 * Create command handler for launcing Metadata view or Tag manager |
|
40 * use above method for creating command handler |
|
41 * |
|
42 * @param aCommandId Command id for command handler |
|
43 * @param aMediaListProvider media list owner |
|
44 */ |
|
45 IMPORT_C static CGlxCommandHandlerDetails* NewL( |
|
46 MGlxMediaListProvider* aMediaListProvider ); |
|
47 |
|
48 /** Destructor */ |
|
49 IMPORT_C ~CGlxCommandHandlerDetails(); |
|
50 |
|
51 private: |
|
52 |
|
53 /** Second phase constructor |
|
54 * |
|
55 * @param aCommandId Command id for command handler |
|
56 */ |
|
57 void ConstructL(); |
|
58 |
|
59 /** |
|
60 * Constructor |
|
61 * @param aMediaListProvider The owner of the media list to use |
|
62 */ |
|
63 CGlxCommandHandlerDetails( MGlxMediaListProvider* aMediaListProvider ); |
|
64 |
|
65 private: // From CGlxMediaListCommandHandler |
|
66 |
|
67 /** See CGlxCommandHandler::DoActivateL */ |
|
68 virtual void DoActivateL(TInt aViewId); |
|
69 |
|
70 /** |
|
71 * Execute the command, if applicable. Called after basic filtering |
|
72 * @param aCommand The command to handle |
|
73 * @return ETrue if command was handled |
|
74 */ |
|
75 virtual TBool DoExecuteL( TInt aCommandId , MGlxMediaList& aList); |
|
76 |
|
77 /** @see CGlxMediaListCommandHandler::DoIsDisabled */ |
|
78 TBool DoIsDisabled(TInt aCommandId, MGlxMediaList& aList) const; |
|
79 |
|
80 private: // implementation |
|
81 |
|
82 void LaunchViewL(TUid aViewPluginId,const TDesC& aURI); |
|
83 |
|
84 private: //data |
|
85 |
|
86 // Resource file offset |
|
87 TInt iResourceOffset; |
|
88 |
|
89 /// Ref: HUI utility |
|
90 CGlxUiUtility* iUiUtility; |
|
91 }; |
|
92 |
|
93 #endif // __C_GLXCOMMANDHANDLERDETAILS_H__ |
|
94 |
|
95 //End of file |
|
96 |
|
97 |