|
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: Update handler to remove contacts from contact list |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __CPENGCONTACTLISTMNGTRANSREMOVEID_H__ |
|
19 #define __CPENGCONTACTLISTMNGTRANSREMOVEID_H__ |
|
20 |
|
21 |
|
22 // INCLUDES |
|
23 #include "CPEngContactListMngTransBase.h" |
|
24 |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * Handler to update contact lists content. |
|
30 * Handler removes contacts from contact list |
|
31 * |
|
32 * @lib PEngListLib2 |
|
33 * @since 3.0 |
|
34 */ |
|
35 NONSHARABLE_CLASS( CPEngContactListMngTransRemoveId ): |
|
36 public CPEngContactListMngTransBase |
|
37 { |
|
38 public: |
|
39 |
|
40 /** |
|
41 * Two-phased constructor. |
|
42 * Contact list reference counted |
|
43 */ |
|
44 static CPEngContactListMngTransRemoveId* NewLC( |
|
45 CPEngContactListModBase& aContactList, |
|
46 CPEngSessionSlotId& aSessionSlotId, |
|
47 TPEngWVCspVersion& aCSPVersion, |
|
48 TInt aOperationId ); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 virtual ~CPEngContactListMngTransRemoveId(); |
|
54 |
|
55 |
|
56 public: // From CPEngContactListMngTransBase |
|
57 |
|
58 /** |
|
59 * Appends remove nick list XML message |
|
60 * @see <CPEngContactListMngTransBase.h> |
|
61 */ |
|
62 void DoAppendListNickUpdateL( MPEngXMLSerializer& aXmlSerializer ); |
|
63 |
|
64 |
|
65 /** |
|
66 * Append subscription update XML message |
|
67 * @see <CPEngContactListMngTransBase.h> |
|
68 */ |
|
69 void DoGetXMLSubscriptionUpdateL( |
|
70 MPEngXMLSerializer& aXmlSerializer ); |
|
71 |
|
72 /** |
|
73 * Parse subscription update response |
|
74 * @see <CPEngContactListMngTransBase.h> |
|
75 */ |
|
76 void DoParseSubscriptionUpdateResponseL( const TDesC8& aResponse ); |
|
77 |
|
78 |
|
79 /** |
|
80 * Update Transaction State |
|
81 * @see <CPEngContactListMngTransBase.h> |
|
82 */ |
|
83 void DoUpdateTransactionState(); |
|
84 |
|
85 |
|
86 /** |
|
87 * Fill nick list of the update |
|
88 * @see <CPEngContactListMngTransBase.h> |
|
89 */ |
|
90 void DoFillNickListLC( |
|
91 RPointerArray<CPEngContactListModItemContainer>& aNickList ); |
|
92 |
|
93 /** |
|
94 * Complete contact list update |
|
95 * @see <CPEngContactListMngTransBase.h> file |
|
96 */ |
|
97 void DoCompleteContactListUpdateL(); |
|
98 |
|
99 |
|
100 private: // Constructors |
|
101 |
|
102 /** |
|
103 * C++ constructor. |
|
104 */ |
|
105 CPEngContactListMngTransRemoveId( CPEngContactListModBase& aContactList, |
|
106 CPEngSessionSlotId& aSessionSlot, |
|
107 TPEngWVCspVersion& aCSPVersion, |
|
108 TInt aOperationId ); |
|
109 |
|
110 /** |
|
111 * Symbian OS constructor. |
|
112 */ |
|
113 void ConstructL(); |
|
114 }; |
|
115 |
|
116 #endif // __CPENGCONTACTLISTMNGTRANSREMOVEID_H__ |
|
117 |
|
118 |
|
119 // End of File |
|
120 |