|
1 /* |
|
2 * Copyright (c) 2005 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: Create attribute list transaction handler |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __CPENGATTRIBUTELISTTRANSCREATEATTRLIST_H__ |
|
19 #define __CPENGATTRIBUTELISTTRANSCREATEATTRLIST_H__ |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32base.h> |
|
23 #include "CPEngAttributeListTransBase.h" |
|
24 |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CPEngAttributeListItem; |
|
28 class MPEngPresenceAttrManager; |
|
29 |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * Create attribute list transaction handler |
|
35 * |
|
36 * @lib PEngListLib2 |
|
37 * @since 3.0 |
|
38 */ |
|
39 NONSHARABLE_CLASS( CPEngAttributeListTransCreateAttrList ) : |
|
40 public CPEngAttributeListTransBase |
|
41 { |
|
42 |
|
43 public: |
|
44 |
|
45 /** |
|
46 * Two-phased constructor. |
|
47 */ |
|
48 static CPEngAttributeListTransCreateAttrList* NewLC( |
|
49 const CPEngAttributeListItem& aAttributeListItem, |
|
50 MPEngAttributeListTransactionManager& aAttrListTransManager, |
|
51 CPEngContactListTransactionManager& aCntListTransManager, |
|
52 MPEngPresenceAttrManager& aPresenceAttributeManager, |
|
53 TPEngWVCspVersion& aCSPVersion, |
|
54 TInt aOperationId, |
|
55 TBool aSync = EFalse ); |
|
56 |
|
57 /** |
|
58 * Destructor. |
|
59 */ |
|
60 virtual ~CPEngAttributeListTransCreateAttrList(); |
|
61 |
|
62 |
|
63 public: // From MPEngOutgoingTransactionHandler |
|
64 |
|
65 /** |
|
66 * Synchronous method, get Outgoing transaction request |
|
67 * @see <MPEngOutgoingTransactionHandler.h> |
|
68 * @since 3.0 |
|
69 */ |
|
70 void RequestL( TDes8& aSendBuffer ); |
|
71 |
|
72 |
|
73 public: // From CPEngAttributeListTransBase |
|
74 |
|
75 /** |
|
76 * Consume XML message response from the WV server |
|
77 * @see <CPEngAttributeListTransBase.h> |
|
78 * @since 3.0 |
|
79 */ |
|
80 void DoConsumeMessageFromServerL( const TDesC8& aResponse ); |
|
81 |
|
82 |
|
83 private: // constructor |
|
84 |
|
85 /** |
|
86 * C++ constructor. |
|
87 */ |
|
88 CPEngAttributeListTransCreateAttrList( |
|
89 MPEngAttributeListTransactionManager& aAttrListTransManager, |
|
90 CPEngContactListTransactionManager& aCntListTransManager, |
|
91 MPEngPresenceAttrManager& aPresenceAttributeManager, |
|
92 TPEngWVCspVersion& aCSPVersion, |
|
93 TInt aOperationId, |
|
94 TBool aSync ); |
|
95 |
|
96 /** |
|
97 * Symbian constructor . |
|
98 */ |
|
99 void ConstructL( const CPEngAttributeListItem& aAttributeListItem ); |
|
100 |
|
101 |
|
102 private: // Data |
|
103 |
|
104 /// OWN: Attribute list item |
|
105 CPEngAttributeListItem* iAttributeListItem; |
|
106 |
|
107 /// REF: Presence attribute manager |
|
108 MPEngPresenceAttrManager& iPresenceAttributeManager; |
|
109 |
|
110 /// OWN: is this synchronization transaction |
|
111 TBool iSynchronization; |
|
112 |
|
113 }; |
|
114 |
|
115 #endif // __CPENGATTRIBUTELISTTRANSCREATEATTRLIST_H__ |
|
116 |
|
117 // End of File |
|
118 |