equal
deleted
inserted
replaced
|
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 // System includes |
|
17 #include <e32std.h> |
|
18 |
|
19 // Local includes |
|
20 #include "CRequest.h" |
|
21 #include "rrequest.h" |
|
22 |
|
23 EXPORT_C RStringF RRequest::Method() const |
|
24 { |
|
25 return static_cast<CRequest*>(iImplementation)->StringPool().StringF( |
|
26 static_cast<CRequest*>(iImplementation)->Method()); |
|
27 } |
|
28 EXPORT_C const TUriC8& RRequest::URI() const |
|
29 { |
|
30 return (static_cast<CRequest*>(iImplementation)->URI()->Uri()); |
|
31 } |
|
32 |
|
33 EXPORT_C void RRequest::SetMethod(RStringF aMethod) |
|
34 { |
|
35 RStringF& method = static_cast<CRequest*>(iImplementation)->Method(); |
|
36 method.Close(); |
|
37 method = aMethod; |
|
38 method.Copy(); |
|
39 } |
|
40 |
|
41 EXPORT_C void RRequest::SetURIL(const TUriC8& aURI) |
|
42 { |
|
43 CUri8*& uri = static_cast<CRequest*>(iImplementation)->URI(); |
|
44 CUri8* oldUri = uri; |
|
45 uri = CUri8::NewL(aURI); |
|
46 // If the NewL leaves, the delete won't get executed, and so the request |
|
47 // will remain unmodified. |
|
48 delete oldUri; |
|
49 } |
|
50 |
|
51 EXPORT_C void RRequest::SetVersion(TVersion aVersion) |
|
52 { |
|
53 static_cast<CRequest*>(iImplementation)->Version() = aVersion; |
|
54 } |
|
55 |
|
56 EXPORT_C TBool RRequest::IsHTTP10() const |
|
57 { |
|
58 return static_cast<CRequest*>(iImplementation)->IsHTTP10(); |
|
59 } |