servicediscoveryandcontrol/pnp/test/upnp/upnpmessage/inc/CMessage.inl
changeset 0 f5a58ecadc66
equal deleted inserted replaced
-1:000000000000 0:f5a58ecadc66
       
     1 // Copyright (c) 2008-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(CHeaderCodec& aCodec)
       
    20 	{
       
    21 	iHeaders = CHeaders::NewL(aCodec);
       
    22 	}
       
    23 
       
    24 inline void CMessage::AddBody(MHTTPDataSupplier* aBody)
       
    25 	{
       
    26 	iDataSupplier = aBody;
       
    27 	}
       
    28 
       
    29 inline TBool CMessage::HasBody() const
       
    30 	{
       
    31 	return (iDataSupplier != NULL);
       
    32 	}
       
    33 
       
    34 inline MHTTPDataSupplier* CMessage::Body() const
       
    35 	{
       
    36 	return iDataSupplier;
       
    37 	}
       
    38 
       
    39 #endif // __CMESSAGE_INL__