upnp/upnpstack/serviceframework/inc/upnphttpmoderatedeventtransaction.h
changeset 0 f5a58ecadc66
equal deleted inserted replaced
-1:000000000000 0:f5a58ecadc66
       
     1 /** @file
       
     2 * Copyright (c) 2008-2008 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:  Implements transaction for moderated events
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_CUPNPHTTPMODERATEDEVENTTRANSACTION_H
       
    19 #define C_CUPNPHTTPMODERATEDEVENTTRANSACTION_H
       
    20 
       
    21 
       
    22 // INCLUDES
       
    23 #include "upnphttptransaction.h"
       
    24 #include "upnpnonmoderatedeventqueuemanager.h"
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29  *  CUpnpHttpModeratedEventTransaction
       
    30  * 
       
    31  */
       
    32 NONSHARABLE_CLASS( CUpnpHttpModeratedEventTransaction ): public CUpnpHttpTransaction
       
    33     {
       
    34 public:
       
    35     // Constructors and destructor
       
    36 
       
    37     /**
       
    38      * Destructor.
       
    39      */
       
    40     ~CUpnpHttpModeratedEventTransaction();
       
    41 
       
    42     /**
       
    43      * Two-phased constructor.
       
    44      */
       
    45     static CUpnpHttpModeratedEventTransaction* NewL( CUpnpHttpMessage* aRequest, 
       
    46                                                      MTransactionObserver& aObserver );
       
    47 
       
    48     /**
       
    49      * Two-phased constructor.
       
    50      */
       
    51     static CUpnpHttpModeratedEventTransaction* NewLC( CUpnpHttpMessage* aRequest, 
       
    52                                                       MTransactionObserver& aObserver);
       
    53     
       
    54     /*
       
    55      * Pure virtual method that let child classes to process
       
    56      * response in their own specific way.
       
    57      */
       
    58     void ProcessResponseL();
       
    59     
       
    60             
       
    61 private:
       
    62 
       
    63     /**
       
    64      * Constructor for performing 1st stage construction
       
    65      */
       
    66     CUpnpHttpModeratedEventTransaction( CUpnpHttpMessage* aRequest, 
       
    67                                         MTransactionObserver& aObserver );
       
    68 
       
    69 
       
    70 private:
       
    71     
       
    72     MTransactionObserver& iObserver;//not owned
       
    73     };
       
    74 
       
    75 #endif // C_CUPNPHTTPMODERATEDEVENTTRANSACTION_H
       
    76 //end of file