servicediscoveryandcontrol/pnp/test/upnp/upnpmessage/inc/CResponse.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 __CRESPONSE_INL__
       
    17 #define __CRESPONSE_INL__
       
    18 
       
    19 inline CResponse::CResponse(RStringPool& aStringPool)
       
    20 	:iStringPool(aStringPool)
       
    21 	{
       
    22 	}
       
    23 
       
    24 inline TInt& CResponse::Status()
       
    25 	{
       
    26 	return iStatus;
       
    27 	}
       
    28 
       
    29 inline RStringF& CResponse::StatusString()
       
    30 	{
       
    31 	return iStatusString;
       
    32 	}
       
    33 
       
    34 inline TBool CResponse::IsHTTP10() const
       
    35 	{
       
    36 	return (((iVersion.iMajor == 1)&&(iVersion.iMinor == 0))?(ETrue):(EFalse));
       
    37 	}
       
    38 
       
    39 inline RResponse CResponse::Handle()
       
    40 	{
       
    41 	RResponse r;
       
    42 	r.iImplementation = this;
       
    43 	return r;
       
    44 	}
       
    45 
       
    46 inline RStringPool& CResponse::StringPool()
       
    47 	{
       
    48 	return iStringPool;
       
    49 	}
       
    50 
       
    51 inline const RStringPool& CResponse::StringPool() const
       
    52   	{
       
    53   	return iStringPool;
       
    54   	}
       
    55   
       
    56 inline TVersion& CResponse::Version()
       
    57 	{
       
    58 	return iVersion;
       
    59 	}
       
    60 
       
    61 inline void CResponse::Reset()
       
    62 	{
       
    63 	Handle().GetHeaderCollection().RemoveAllFields();
       
    64 	}
       
    65 
       
    66 #endif // __CRESPONSE_INL__