|
1 /* |
|
2 * Copyright (c) 2007-2008 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: Header declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 #ifndef WSF_ATOM_TXN_STATE_H |
|
26 #define WSF_ATOM_TXN_STATE_H |
|
27 |
|
28 // INCLUDES |
|
29 #include "sentxnstate.h" |
|
30 #include "senmultipartutils.h" |
|
31 #include "senmultiparttxnstate.h" |
|
32 |
|
33 // CONSTANTS |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 // FORWARD DECLARATIONS |
|
39 |
|
40 // CLASS DECLARATION |
|
41 /** |
|
42 * Class for working with MultiPart messages - creates MultiPart request and parse MultiPart response |
|
43 * Implements the MHTTPDataSupplier interface. |
|
44 * |
|
45 */ |
|
46 class CSenAtomTxnState : public CSenMultiPartTxnState |
|
47 { |
|
48 public: // Constructors and destructor |
|
49 |
|
50 /** |
|
51 * Two-phased constructor. |
|
52 * |
|
53 */ |
|
54 static CSenAtomTxnState* NewLC(MSenResponseObserver& aObserver, |
|
55 const TDesC8* aUri, |
|
56 CSenAtomEntry& aAtomEntry); |
|
57 |
|
58 /** |
|
59 * Two-phased constructor. |
|
60 * |
|
61 */ |
|
62 static CSenAtomTxnState* NewL(MSenResponseObserver& aObserver, |
|
63 const TDesC8* aUri, |
|
64 CSenAtomEntry& aAtomEntry); |
|
65 |
|
66 |
|
67 // Functions from base classes |
|
68 |
|
69 /** |
|
70 * From CSenTxnState |
|
71 * Creates and sets ContentType in MultiPart envelope header |
|
72 * @param aSession |
|
73 * @param aHeaders |
|
74 */ |
|
75 void SetContentTypeHeaderL(const RHTTPSession aSession, RHTTPHeaders aHeaders); |
|
76 void MessageL(); |
|
77 |
|
78 private: |
|
79 |
|
80 /** |
|
81 * C++ default constructor. |
|
82 * |
|
83 */ |
|
84 CSenAtomTxnState(MSenResponseObserver& aObserver); |
|
85 |
|
86 /** |
|
87 * 2nd phase constructor. |
|
88 * |
|
89 */ |
|
90 void ConstructL(const TDesC8* aUri, |
|
91 CSenAtomEntry& aAtomEntry); |
|
92 }; |
|
93 |
|
94 #endif // WSF_ATOM_TXN_STATE_H |
|
95 |
|
96 // End of File |