servicediscoveryandcontrol/pnp/test/upnp/upnpmessage/inc/rresponse.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 11 Jun 2010 14:30:51 +0300
changeset 12 78fbd574edf4
parent 0 f5a58ecadc66
permissions -rw-r--r--
Revision: 201022 Kit: 2010123

// 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:
// This file contains Rose Model ID comments - please do not delete
// 
//

#ifndef __RResponse_H__
#define __RResponse_H__

// System includes
#include <e32std.h>
#include <stringpool.h>

// Local includes
#include "rupnpmessage.h"


class RResponse : public RUPnPMessage
/** 
An HTTP Response.  This class extends the abstract HTTP Message to add an HTTP
version, a status code and status text.
@publishedAll
@released
*/
	{
public:
	/**Get Methods
		Methods for reading information from the response.
	*/
	//@{
	/** 
		Returns the status code
	*/
	IMPORT_C TInt StatusCode() const;
	/** Returns the status text, that is the text after the number on
        the first line of the response. */
	IMPORT_C RStringF StatusText() const;
	/**
		Returns ETrue version of HTTP used by the server is 1.0
	*/
	IMPORT_C TBool IsHTTP10() const;
	//@}
	/** Set Methods 

		Methods for setting information. These methods will not be of
		use to the client; they are intended for the use of advanced
		filters
	*/
	//@{
	/** Sets the status code.
	 */
	IMPORT_C void SetStatusCode(TInt aStatus);
	// Sets the status string
	IMPORT_C void SetStatusText(RStringF aStatusString);
	// Sets the HTTP version
	IMPORT_C void SetVersion(TVersion aVersion);
	//@}

	friend class CResponse;
	};



#endif // __RResponse_H__