williamr@2: // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@2: // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members williamr@2: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: @file RHTTPResponse.h williamr@2: @warning : This file contains Rose Model ID comments - please do not delete williamr@2: */ williamr@2: williamr@2: #ifndef __RHTTPRESPONSE_H__ williamr@2: #define __RHTTPRESPONSE_H__ williamr@2: williamr@2: // System includes williamr@2: #include williamr@2: #include williamr@2: #include williamr@2: williamr@2: williamr@2: //##ModelId=3A375D1203B5 williamr@2: class RHTTPResponse : public RHTTPMessage williamr@2: /** williamr@2: An HTTP Response. This class extends the abstract HTTP Message to add an HTTP williamr@2: version, a status code and status text. williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: { williamr@2: public: williamr@2: /**Get Methods williamr@2: Methods for reading information from the response. williamr@2: */ williamr@2: //@{ williamr@2: /** williamr@2: Returns the status code williamr@2: */ williamr@2: //##ModelId=3A914DF801B3 williamr@2: IMPORT_C TInt StatusCode() const; williamr@2: /** Returns the status text, that is the text after the number on williamr@2: the first line of the response. */ williamr@2: //##ModelId=3A914DF80195 williamr@2: IMPORT_C RStringF StatusText() const; williamr@2: /** williamr@2: Returns the version of HTTP used by the server williamr@2: */ williamr@2: //##ModelId=3A914DF80163 williamr@2: IMPORT_C TVersion Version() const; williamr@2: //@} williamr@2: /** Set Methods williamr@2: williamr@2: Methods for setting information. These methods will not be of williamr@2: use to the client; they are intended for the use of advanced williamr@2: filters williamr@2: */ williamr@2: //@{ williamr@2: /** Sets the status code. williamr@2: */ williamr@2: //##ModelId=3A3765310382 williamr@2: IMPORT_C void SetStatusCode(TInt aStatus); williamr@2: /// Sets the status string williamr@2: //##ModelId=3A914DF8019F williamr@2: IMPORT_C void SetStatusText(RStringF aStatusString); williamr@2: /// Sets the HTTP version williamr@2: //##ModelId=3A914DF8016D williamr@2: IMPORT_C void SetVersion(TVersion aVersion); williamr@2: //@} williamr@2: williamr@2: friend class CResponse; williamr@2: }; williamr@2: williamr@2: williamr@2: williamr@2: #endif // __RHTTPRESPONSE_H__