|
1 /* |
|
2 * Copyright (c) 2007-2007 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: Rename command handler |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __C_GLXCOMMANDHANDLERREOPEN_H__ |
|
22 #define __C_GLXCOMMANDHANDLERREOPEN_H__ |
|
23 |
|
24 #include <e32base.h> |
|
25 #include <glxmedialistcommandhandler.h> |
|
26 #include <glxuiutility.h> |
|
27 |
|
28 class MGlxMediaListProvider; |
|
29 |
|
30 /** |
|
31 * @class CGlxCommandHandlerOpen |
|
32 * Command handler for Open Option. |
|
33 */ |
|
34 NONSHARABLE_CLASS(CGlxCommandHandlerOpen) :public CGlxMediaListCommandHandler |
|
35 { |
|
36 public: |
|
37 /** |
|
38 * Two-phase constructor |
|
39 */ |
|
40 IMPORT_C static CGlxCommandHandlerOpen* NewL(MGlxMediaListProvider* aMediaListProvider); |
|
41 |
|
42 /** Destructor */ |
|
43 IMPORT_C ~CGlxCommandHandlerOpen(); |
|
44 |
|
45 |
|
46 private: |
|
47 /** Second phase constructor */ |
|
48 void ConstructL(); |
|
49 /** |
|
50 * Constructor |
|
51 * @param aMediaListProvider object that provides the media list |
|
52 */ |
|
53 CGlxCommandHandlerOpen( MGlxMediaListProvider* aMediaListProvider); |
|
54 |
|
55 private: |
|
56 virtual void DoActivateL(TInt aViewId); |
|
57 |
|
58 virtual TBool DoExecuteL( TInt aCommandId , MGlxMediaList& aList); |
|
59 |
|
60 TBool DoIsDisabled(TInt aCommandId, MGlxMediaList& aList) const; |
|
61 |
|
62 private: |
|
63 CGlxUiUtility* iUiUtility; |
|
64 }; |
|
65 |
|
66 #endif // __C_GLXCOMMANDHANDLEROPEN_H__ |