diff -r 000000000000 -r f5a58ecadc66 servicediscoveryandcontrol/pnp/test/upnp/upnpmessage/inc/CResponse.inl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/servicediscoveryandcontrol/pnp/test/upnp/upnpmessage/inc/CResponse.inl Tue Feb 02 01:12:20 2010 +0200 @@ -0,0 +1,66 @@ +// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +#ifndef __CRESPONSE_INL__ +#define __CRESPONSE_INL__ + +inline CResponse::CResponse(RStringPool& aStringPool) + :iStringPool(aStringPool) + { + } + +inline TInt& CResponse::Status() + { + return iStatus; + } + +inline RStringF& CResponse::StatusString() + { + return iStatusString; + } + +inline TBool CResponse::IsHTTP10() const + { + return (((iVersion.iMajor == 1)&&(iVersion.iMinor == 0))?(ETrue):(EFalse)); + } + +inline RResponse CResponse::Handle() + { + RResponse r; + r.iImplementation = this; + return r; + } + +inline RStringPool& CResponse::StringPool() + { + return iStringPool; + } + +inline const RStringPool& CResponse::StringPool() const + { + return iStringPool; + } + +inline TVersion& CResponse::Version() + { + return iVersion; + } + +inline void CResponse::Reset() + { + Handle().GetHeaderCollection().RemoveAllFields(); + } + +#endif // __CRESPONSE_INL__