|
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 // This file contains Rose Model ID comments - please do not delete |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef __RResponse_H__ |
|
19 #define __RResponse_H__ |
|
20 |
|
21 // System includes |
|
22 #include <e32std.h> |
|
23 #include <stringpool.h> |
|
24 |
|
25 // Local includes |
|
26 #include "rupnpmessage.h" |
|
27 |
|
28 |
|
29 class RResponse : public RUPnPMessage |
|
30 /** |
|
31 An HTTP Response. This class extends the abstract HTTP Message to add an HTTP |
|
32 version, a status code and status text. |
|
33 @publishedAll |
|
34 @released |
|
35 */ |
|
36 { |
|
37 public: |
|
38 /**Get Methods |
|
39 Methods for reading information from the response. |
|
40 */ |
|
41 //@{ |
|
42 /** |
|
43 Returns the status code |
|
44 */ |
|
45 IMPORT_C TInt StatusCode() const; |
|
46 /** Returns the status text, that is the text after the number on |
|
47 the first line of the response. */ |
|
48 IMPORT_C RStringF StatusText() const; |
|
49 /** |
|
50 Returns ETrue version of HTTP used by the server is 1.0 |
|
51 */ |
|
52 IMPORT_C TBool IsHTTP10() const; |
|
53 //@} |
|
54 /** Set Methods |
|
55 |
|
56 Methods for setting information. These methods will not be of |
|
57 use to the client; they are intended for the use of advanced |
|
58 filters |
|
59 */ |
|
60 //@{ |
|
61 /** Sets the status code. |
|
62 */ |
|
63 IMPORT_C void SetStatusCode(TInt aStatus); |
|
64 // Sets the status string |
|
65 IMPORT_C void SetStatusText(RStringF aStatusString); |
|
66 // Sets the HTTP version |
|
67 IMPORT_C void SetVersion(TVersion aVersion); |
|
68 //@} |
|
69 |
|
70 friend class CResponse; |
|
71 }; |
|
72 |
|
73 |
|
74 |
|
75 #endif // __RResponse_H__ |