upnpframework/upnpcommand/inc/upnprunsetuptask.h
changeset 0 7f85d04be362
equal deleted inserted replaced
-1:000000000000 0:7f85d04be362
       
     1 /*
       
     2 * Copyright (c) 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:  Header file for the CUpnpRunSetupTask class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef UPNP_RUN_SETUP_TASK_H
       
    20 #define UPNP_RUN_SETUP_TASK_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include "upnptask.h"
       
    25 
       
    26 /**
       
    27 * This class defines the CUpnpRunSetupTask used in UpnpCommand component.
       
    28 *
       
    29 * @since S60 3.2
       
    30 */
       
    31 class CUpnpRunSetupTask : public CUpnpTask
       
    32     {
       
    33     public: // Methods from CUpnpTask
       
    34 
       
    35         /**
       
    36          * Creates a new CUpnpRunSetupTask object. Allocates Upnp Fw
       
    37          * resources. Resources will be released when the task is destroyed.
       
    38          *
       
    39          * @since S60 3.2
       
    40          * @return a new instance of CUpnpRunSetupTask, casted to CUpnpTask
       
    41          */
       
    42         static CUpnpTask* NewL();
       
    43 
       
    44         /**
       
    45          * Allocates the Upnp Fw resources.
       
    46          *
       
    47          * @since S60 3.2
       
    48          */
       
    49         void AllocateResourcesL();
       
    50 
       
    51         /**
       
    52          * Executes the task.
       
    53          *
       
    54          * @since S60 3.2
       
    55          */
       
    56         void ExecuteL();
       
    57 
       
    58     public: // Public destructor
       
    59 
       
    60         /**
       
    61          * Destructor.
       
    62          */
       
    63         virtual ~CUpnpRunSetupTask();
       
    64 
       
    65     private: // Private construct/destruct methods
       
    66 
       
    67         /**
       
    68          * Perform the first phase of two phase construction.
       
    69          *
       
    70          * @since S60 3.2
       
    71          * @return a new instance of CUpnpRunSetupTask, casted to CUpnpTask
       
    72          */
       
    73         CUpnpRunSetupTask();
       
    74 
       
    75         /**
       
    76          * Perform the second phase of two phase construction. Reserves the
       
    77          * Upnp Fw resources (they are released when the task is destroyed).
       
    78          */
       
    79         void ConstructL();
       
    80 
       
    81     };
       
    82 
       
    83 #endif // UPNP_RUN_SETUP_TASK_H
       
    84 
       
    85 // End of File