upnp/upnpstack/controlpointbase/inc/upnpservicesubscriptionhttptransaction.h
changeset 0 f5a58ecadc66
equal deleted inserted replaced
-1:000000000000 0:f5a58ecadc66
       
     1 /** @file
       
     2 * Copyright (c) 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:  Declaration of CUpnpServiceSubscriptionHttpTransaction
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef UPNPSERVICESUBSCRIPTIONHTTPTRANSACTION_H
       
    19 #define UPNPSERVICESUBSCRIPTIONHTTPTRANSACTION_H
       
    20 
       
    21 // INCLUDES
       
    22 #include "upnphttptransaction.h"
       
    23 
       
    24 // CLASS DECLARATION
       
    25 class CUpnpControlPoint;
       
    26 /**
       
    27  *  CUpnpServiceSubscriptionHttpTransaction
       
    28  * 
       
    29  */
       
    30 
       
    31 NONSHARABLE_CLASS( CUpnpServiceSubscriptionHttpTransaction ) : public CUpnpHttpTransaction
       
    32     {
       
    33 public:
       
    34     // Constructors and destructor
       
    35 
       
    36     /**
       
    37     * Destructor.
       
    38     */
       
    39     ~CUpnpServiceSubscriptionHttpTransaction();
       
    40 
       
    41     /**
       
    42     * Two-phased constructor.
       
    43     */
       
    44     static CUpnpServiceSubscriptionHttpTransaction* NewLC( CUpnpHttpMessage* aRequest,
       
    45                                                            CUpnpControlPoint& aControlPoint );
       
    46 
       
    47 private:    //from CUpnpHttpTransaction
       
    48     /**
       
    49     * Callback called when response comes.
       
    50     * Processes response by passing it to control point.
       
    51     */
       
    52     virtual void ProcessResponseL();
       
    53 
       
    54 private:
       
    55 
       
    56     /**
       
    57     * Constructor for performing 1st stage construction
       
    58     */
       
    59     CUpnpServiceSubscriptionHttpTransaction( CUpnpHttpMessage* aRequest,
       
    60                                              CUpnpControlPoint& aControlPoint );
       
    61 
       
    62 private:
       
    63      //control point, not owned
       
    64     CUpnpControlPoint& iControlPoint;
       
    65 
       
    66     //SessionId of message that added service to control point's subscribed services
       
    67     TInt iServiceSessionId;
       
    68     };
       
    69 
       
    70 #endif // UPNPSERVICESUBSCRIPTIONHTTPTRANSACTION_H