photosgallery/viewframework/commandhandlers/commandhandlerupnp/inc/glxcommandhandlercopytohomenetwork.h
changeset 0 4e91876724a2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/photosgallery/viewframework/commandhandlers/commandhandlerupnp/inc/glxcommandhandlercopytohomenetwork.h	Thu Dec 17 08:45:44 2009 +0200
@@ -0,0 +1,87 @@
+/*
+* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). 
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:    Upnp CommandHandler
+*
+*/
+
+
+
+
+#ifndef C_GLXCOMMANDHANDLERCOPYTOHOMENETWORK_H__
+#define C_GLXCOMMANDHANDLERCOPYTOHOMENETWORK_H__
+
+
+//Includes
+#include <e32base.h>
+#include <glxmedialistcommandhandler.h>
+
+class t_cglxcommandhandlercopytohomenetwork;
+
+// CLASS DECLARATION
+  /**
+   *  CommandHandler which handles copying media to the home network
+   *
+   * @lib glxupnpcommandhandler.lib
+   * @internal reviewed 1/02/2007 by Kimmo Hoikka
+   */   
+NONSHARABLE_CLASS( CGlxCommandHandlerCopyToHomeNetwork ) : public CGlxMediaListCommandHandler
+    {    
+public:
+    //Constructors and Destructor    
+    /**
+    * NewL - Two-phase construction
+    * @param aMediaListProvider object that provides the media list.
+    */
+    
+    IMPORT_C static CGlxCommandHandlerCopyToHomeNetwork* 
+                        NewL(MGlxMediaListProvider& aMediaListProvider);
+    /**
+    * Destructor
+    */
+    IMPORT_C ~CGlxCommandHandlerCopyToHomeNetwork();   
+    
+private:
+    // From CGlxMediaListCommandHandler
+    
+    /**
+     * See @ref CGlxMediaListCommandHandler::DoExecuteL
+     */
+    TBool DoExecuteL(TInt aCommandId, MGlxMediaList& aList);
+
+    /**
+     * See @ref CGlxMediaListCommandHandler::DoIsDisabled
+     */
+    TBool DoIsDisabled(TInt aCommandId, MGlxMediaList& aList) const;	
+    
+private:
+    /**
+    * First Phase Constructor
+    * @param aMediaListProvider object that provides the media list.
+    */      
+    CGlxCommandHandlerCopyToHomeNetwork(MGlxMediaListProvider& aMediaListProvider);        
+    
+    /**
+     * Second-phase constructor
+     */
+    void ConstructL();
+
+    /**
+     * Add the copy to home network command to the command array.
+     */
+    void AddCopyToHomeNetworkCommandL();
+        
+    friend class t_cglxcommandhandlercopytohomenetwork;
+    };
+
+#endif // C_GLXCOMMANDHANDLERCOPYTOHOMENETWORK_H__