|
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: Upnp CommandHandler |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef C_GLXCOMMANDHANDLERCOPYTOHOMENETWORK_H__ |
|
22 #define C_GLXCOMMANDHANDLERCOPYTOHOMENETWORK_H__ |
|
23 |
|
24 |
|
25 //Includes |
|
26 #include <e32base.h> |
|
27 #include <glxmedialistcommandhandler.h> |
|
28 |
|
29 class t_cglxcommandhandlercopytohomenetwork; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 /** |
|
33 * CommandHandler which handles copying media to the home network |
|
34 * |
|
35 * @lib glxupnpcommandhandler.lib |
|
36 * @internal reviewed 1/02/2007 by Kimmo Hoikka |
|
37 */ |
|
38 NONSHARABLE_CLASS( CGlxCommandHandlerCopyToHomeNetwork ) : public CGlxMediaListCommandHandler |
|
39 { |
|
40 public: |
|
41 //Constructors and Destructor |
|
42 /** |
|
43 * NewL - Two-phase construction |
|
44 * @param aMediaListProvider object that provides the media list. |
|
45 */ |
|
46 |
|
47 IMPORT_C static CGlxCommandHandlerCopyToHomeNetwork* |
|
48 NewL(MGlxMediaListProvider& aMediaListProvider); |
|
49 /** |
|
50 * Destructor |
|
51 */ |
|
52 IMPORT_C ~CGlxCommandHandlerCopyToHomeNetwork(); |
|
53 |
|
54 private: |
|
55 // From CGlxMediaListCommandHandler |
|
56 |
|
57 /** |
|
58 * See @ref CGlxMediaListCommandHandler::DoExecuteL |
|
59 */ |
|
60 TBool DoExecuteL(TInt aCommandId, MGlxMediaList& aList); |
|
61 |
|
62 /** |
|
63 * See @ref CGlxMediaListCommandHandler::DoIsDisabled |
|
64 */ |
|
65 TBool DoIsDisabled(TInt aCommandId, MGlxMediaList& aList) const; |
|
66 |
|
67 private: |
|
68 /** |
|
69 * First Phase Constructor |
|
70 * @param aMediaListProvider object that provides the media list. |
|
71 */ |
|
72 CGlxCommandHandlerCopyToHomeNetwork(MGlxMediaListProvider& aMediaListProvider); |
|
73 |
|
74 /** |
|
75 * Second-phase constructor |
|
76 */ |
|
77 void ConstructL(); |
|
78 |
|
79 /** |
|
80 * Add the copy to home network command to the command array. |
|
81 */ |
|
82 void AddCopyToHomeNetworkCommandL(); |
|
83 |
|
84 friend class t_cglxcommandhandlercopytohomenetwork; |
|
85 }; |
|
86 |
|
87 #endif // C_GLXCOMMANDHANDLERCOPYTOHOMENETWORK_H__ |