upnp/upnpstack/controlpointbase/src/upnpdevicedescriptionhttptransaction.cpp
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:  Definition of CUpnpDeviceDescriptionHttpTransaction
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "upnpdevicedescriptionhttptransaction.h"
       
    20 #include "upnpcontrolpoint.h"
       
    21 
       
    22 // ----------------------------------------------------------------------------
       
    23 // CUpnpDeviceDescriptionHttpTransaction::~CUpnpDeviceDescriptionHttpTransaction
       
    24 // Destructor.
       
    25 // ----------------------------------------------------------------------------
       
    26 //
       
    27 CUpnpDeviceDescriptionHttpTransaction::~CUpnpDeviceDescriptionHttpTransaction()
       
    28     {
       
    29     }
       
    30 
       
    31 // ----------------------------------------------------------------------------
       
    32 // CUpnpDeviceDescriptionHttpTransaction::NewLC
       
    33 // Two-phased constructor, that takes ownership of a message and guarantee it's
       
    34 // destruction even when leave ocures.
       
    35 // Caller shouldn't place aMsg on cleanupstack before method call
       
    36 // ----------------------------------------------------------------------------
       
    37 //
       
    38 CUpnpDeviceDescriptionHttpTransaction* CUpnpDeviceDescriptionHttpTransaction::NewLC(
       
    39     CUpnpHttpMessage* aRequest, CUpnpControlPoint& aControlPoint)
       
    40     {
       
    41     CleanupStack::PushL( aRequest );
       
    42     CUpnpDeviceDescriptionHttpTransaction* self =
       
    43         new (ELeave) CUpnpDeviceDescriptionHttpTransaction( aRequest, aControlPoint );
       
    44     CleanupStack::Pop( aRequest );//now msg is safe it will be deleted from destructor
       
    45     CleanupStack::PushL( self );
       
    46     self->BaseConstructL();
       
    47     return self;
       
    48     }
       
    49 
       
    50 // ----------------------------------------------------------------------------
       
    51 // CUpnpDeviceDescriptionHttpTransaction::CUpnpDeviceDescriptionHttpTransaction
       
    52 // Constructor.
       
    53 // ----------------------------------------------------------------------------
       
    54 //
       
    55 CUpnpDeviceDescriptionHttpTransaction::CUpnpDeviceDescriptionHttpTransaction(
       
    56     CUpnpHttpMessage* aRequest, CUpnpControlPoint& aControlPoint ) :
       
    57     CUpnpHttpTransaction( aRequest ), iControlPoint( aControlPoint )
       
    58     {
       
    59     }
       
    60 
       
    61 // ----------------------------------------------------------------------------
       
    62 // void CUpnpDeviceDescriptionHttpTransaction::ProcessResponseL()
       
    63 // Processes response by passing it to control point.
       
    64 // ----------------------------------------------------------------------------
       
    65 //
       
    66 void CUpnpDeviceDescriptionHttpTransaction::ProcessResponseL()
       
    67     {
       
    68     iControlPoint.ProcessDeviceMessageL( Response() );
       
    69     }
       
    70 
       
    71 //  End of File
       
    72