upnpframework/upnpcommand/inc/upnpcopytask.h
author Sampo Huttunen <sampo.huttunen@nokia.com>
Wed, 24 Nov 2010 09:39:46 +0200
branchIOP_Improvements
changeset 45 a6c41ca11adf
parent 0 7f85d04be362
permissions -rw-r--r--
Updated the SIS package, there was some BC issue with the earlier version. Also updated the platform UID to S^3 version.

/*
* Copyright (c) 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:  Header file for the CUpnpCopyTask class.
*
*/


#ifndef UPNP_COPY_TASK_H
#define UPNP_COPY_TASK_H

// INCLUDES
// System
#include <e32base.h>
// base class
#include "upnpfiletransferbasetask.h"

// FORWARD DECLARATIONS


/**
* This class defines the CUpnpCopyTask used in UpnpCommand component.
*
* @since S60 3.2
*/
class CUpnpCopyTask : public CUpnpFileTransferBaseTask
    {
    public: // Methods from CUpnpTask

        /**
         * Creates a new CUpnpCopyTask object. Allocates Upnp Fw resources.
         * Resources will be released when the task is destroyed.
         *
         * @since S60 3.2
         * @return a new instance of CUpnpCopyTask, casted to type CUpnpTask
         */
        static CUpnpTask* NewL();

        /**
         * Allocates the Upnp Fw resources.
         *
         * @since S60 3.2
         */
        void AllocateResourcesL();

        /**
         * Executes the task.
         *
         * @since S60 3.2
         */
        void ExecuteL();


    public: // Public destructor

        /**
         * Destructor.
         */
        virtual ~CUpnpCopyTask();

    private: // Private construct/destruct methods

        /**
         * Perform the first phase of two phase construction.
         *
         * @since S60 3.2
         * @return a new instance of CUpnpCopyTask, casted to type CUpnpTask
         */
        CUpnpCopyTask();

        /**
         * Perform the second phase of two phase construction. Reserves the
         * Upnp Fw resources (they are released when the task is destroyed).
         */
        void ConstructL();

    };

#endif // UPNP_COPY_TASK_H

// End of File