1 /* |
|
2 * Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: CXcapHttpContSupplier |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __XCAPHTTPCONTSUPPLIER__ |
|
22 #define __XCAPHTTPCONTSUPPLIER__ |
|
23 |
|
24 // INCLUDES |
|
25 #include "XcapHttpRequest.h" |
|
26 |
|
27 //FORWARD DECLARATIONS |
|
28 class CXdmHttpResponse; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 class CXcapHttpContSupplier : public CXcapHttpRequest, |
|
32 public MHTTPDataSupplier |
|
33 { |
|
34 public: |
|
35 |
|
36 /** |
|
37 * C++ default constructor is private. |
|
38 */ |
|
39 IMPORT_C void SetRequestBodyL( const TDesC8& aRequestBody ); |
|
40 |
|
41 /** |
|
42 * C++ default constructor is private. |
|
43 */ |
|
44 IMPORT_C TPtrC8 RequestBody() const; |
|
45 |
|
46 protected: |
|
47 |
|
48 /** |
|
49 * C++ default constructor is private. |
|
50 */ |
|
51 CXcapHttpContSupplier( RHTTPSession& aHttpSession, |
|
52 CXcapHttpAuthManager& aAuthManager, |
|
53 CXcapHttpTransport& aTransportMain ); |
|
54 |
|
55 /** |
|
56 * Destructor. |
|
57 */ |
|
58 virtual ~CXcapHttpContSupplier(); |
|
59 |
|
60 private: |
|
61 |
|
62 /** |
|
63 * Second-phase constructor. |
|
64 */ |
|
65 TBool GetNextDataPart( TPtrC8& aDataPart ); |
|
66 |
|
67 /** |
|
68 * Second-phase constructor. |
|
69 */ |
|
70 void ReleaseData(); |
|
71 |
|
72 /** |
|
73 * Second-phase constructor. |
|
74 */ |
|
75 TInt Reset(); |
|
76 |
|
77 /** |
|
78 * Second-phase constructor. |
|
79 */ |
|
80 TInt OverallDataSize(); |
|
81 |
|
82 protected: //Data |
|
83 |
|
84 private: //Data |
|
85 |
|
86 HBufC8* iRequestBody; |
|
87 }; |
|
88 |
|
89 #endif |
|
90 |
|
91 // End of File |
|