applayerprotocols/httptransportfw/core/CMessage.inl
changeset 0 b16258d2340f
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __CMESSAGE_INL__
       
    17 #define __CMESSAGE_INL__
       
    18 
       
    19 inline void CMessage::ConstructL(CTransaction* aTransaction)
       
    20 	{
       
    21 	iHeaders = CHeaders::NewL(aTransaction->Codec());
       
    22 	iTransaction = aTransaction;
       
    23 	}
       
    24 
       
    25 inline void CMessage::AddBody(MHTTPDataSupplier* aBody)
       
    26 	{
       
    27 	iDataSupplier = aBody;
       
    28 	}
       
    29 
       
    30 inline TBool CMessage::HasBody() const
       
    31 	{
       
    32 	return (iDataSupplier != NULL);
       
    33 	}
       
    34 
       
    35 inline MHTTPDataSupplier* CMessage::Body() const
       
    36 	{
       
    37 	return iDataSupplier;
       
    38 	}
       
    39 
       
    40 
       
    41 inline RHTTPHeaders CMessage::Headers() const
       
    42 	{
       
    43 	return iHeaders->Handle();
       
    44 	}
       
    45 
       
    46 
       
    47 #endif // __CMESSAGE_INL__