|
1 /* |
|
2 * Copyright (c) 2006 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: IMPS Protocol implementation for Presence Framework |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __CIMPSPLUGINREMOVEPRESENTITYGROUPMEMBERREQUEST_H__ |
|
20 #define __CIMPSPLUGINREMOVEPRESENTITYGROUPMEMBERREQUEST_H__ |
|
21 |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <ximpbase.h> |
|
26 #include "impsdebugprint.h" |
|
27 |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class MImpsPrtPluginConnectionManager; |
|
31 class MPEngXMLParser; |
|
32 class MPEngXmlSerializer; |
|
33 class MXIMPIdentity; |
|
34 |
|
35 |
|
36 /** |
|
37 * CRemovePresentityGroupMemberRequest |
|
38 * |
|
39 * Issue Add Presentity Group Member Request to Network Server |
|
40 * |
|
41 * @lib ?library |
|
42 * @since S60 v4.0 |
|
43 */ |
|
44 |
|
45 class CRemovePresentityGroupMemberRequest: public CActive |
|
46 |
|
47 |
|
48 { |
|
49 |
|
50 public: |
|
51 |
|
52 static CRemovePresentityGroupMemberRequest* NewL( |
|
53 MImpsPrtPluginConnectionManager& aConnMan, |
|
54 TXIMPRequestId aRequestId ); |
|
55 |
|
56 static CRemovePresentityGroupMemberRequest* NewLC( |
|
57 MImpsPrtPluginConnectionManager& aConnMan, |
|
58 TXIMPRequestId aRequestId ); |
|
59 |
|
60 virtual ~CRemovePresentityGroupMemberRequest(); |
|
61 |
|
62 private: |
|
63 |
|
64 CRemovePresentityGroupMemberRequest( |
|
65 MImpsPrtPluginConnectionManager& aConnMan, |
|
66 TXIMPRequestId aRequestId ); |
|
67 void ConstructL(); |
|
68 |
|
69 private: // from CActive |
|
70 |
|
71 void DoCancel(); |
|
72 void RunL(); |
|
73 TInt RunError( TInt aError ); |
|
74 |
|
75 public: |
|
76 |
|
77 void RemovePresentityGroupMemberL( const MXIMPIdentity& aGroupId, |
|
78 const MXIMPIdentity& aMemberId ); |
|
79 |
|
80 |
|
81 private: // data |
|
82 |
|
83 /** |
|
84 * Request Id from PrFw |
|
85 */ |
|
86 |
|
87 TXIMPRequestId iRequestId; |
|
88 |
|
89 /** |
|
90 * Send data request to pure data handler generates the id |
|
91 */ |
|
92 TInt iSendId; |
|
93 HBufC8* iResponse; |
|
94 HBufC16* iListId; |
|
95 HBufC16* iGroupName; |
|
96 HBufC16* iMemberName; |
|
97 |
|
98 |
|
99 /** |
|
100 * ?description_of_pointer_member |
|
101 * Own. *** Write "Own" if this class owns the object pointed to; in |
|
102 other words, if this class is responsible for deleting it. |
|
103 */ |
|
104 |
|
105 MPEngXMLParser* iParser; |
|
106 |
|
107 /** |
|
108 * Imps Protocol Plugin Connection Manager |
|
109 * Not own. *** Write "Not own" if some other class owns this object. |
|
110 */ |
|
111 MImpsPrtPluginConnectionManager& iConnMan; |
|
112 |
|
113 }; |
|
114 |
|
115 |
|
116 #endif // __CIMPSPLUGINREMOVEPRESENTITYGROUPMEMBERREQUEST_H__ |
|
117 |