diff -r 000000000000 -r 4e91876724a2 photosgallery/viewframework/commandhandlers/commandhandlerupnp/tsrc/t_glxcommandhandlercopytohomenetwork/inc/t_glxcommandhandlercopytohomenetwork.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/photosgallery/viewframework/commandhandlers/commandhandlerupnp/tsrc/t_glxcommandhandlercopytohomenetwork/inc/t_glxcommandhandlercopytohomenetwork.h Thu Dec 17 08:45:44 2009 +0200 @@ -0,0 +1,84 @@ +/* +* Copyright (c) 2006-2007 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 Command Handlers. +* +*/ + + + + +#ifndef __T_CGLXCOMMANDHANDLERCOPYTOHOMENETWORK +#define __T_CGLXCOMMANDHANDLERCOPYTOHOMENETWORK + +// EXTERNAL INCLUDES +#include +#include + +#include "glxcommandhandlercopytohomenetwork.h" + +#include +#include + +// FORWARD DECLARATIONS +class MGlxMediaList; +class CGlxCommandHandlerCopyToHomeNetwork; + +// CLASS DEFINITION +NONSHARABLE_CLASS( t_cglxcommandhandlercopytohomenetwork ) + : public CEUnitTestSuiteClass ,public MGlxMediaListProvider//public MGlxMediaListOwner + { + public: // Constructors and destructors + + /** + * Two phase construction + */ + static t_cglxcommandhandlercopytohomenetwork* NewL(); + static t_cglxcommandhandlercopytohomenetwork* NewLC(); + /** + * Destructor + */ + ~t_cglxcommandhandlercopytohomenetwork(); + + private: // Constructors and destructors + t_cglxcommandhandlercopytohomenetwork(); + + void ConstructL(); + + public: + MGlxMediaList& MediaList(); + + private: // New methods + + void Teardown(); + + void SetupL(); + + void T_AddCopyToHomeNetworkCommandL_L(); + + void T_DoExecuteL_L(); + + void T_DoIsDisabled_L(); + + private: // Data + EUNIT_DECLARE_TEST_TABLE; + + private: + CGlxCommandHandlerCopyToHomeNetwork* iCommandHandlerCopyToHomeNetwork; + MGlxMediaList* iList; + + }; + +#endif // __T_CGLXCOMMANDHANDLERCOPYTOHOMENETWORK + +// End of file