|
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 __CIMPSPLUGINADDPRESENTITYGROUPMEMBERREQUEST_H__ |
|
20 #define __CIMPSPLUGINADDPRESENTITYGROUPMEMBERREQUEST_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 * CAddPresentityGroupMemberRequest |
|
37 * |
|
38 * Issue Add Presentity Group Member Request to Network Server |
|
39 * |
|
40 * @lib ?library |
|
41 * @since S60 v4.0 |
|
42 */ |
|
43 |
|
44 class CAddPresentityGroupMemberRequest: public CActive |
|
45 |
|
46 |
|
47 { |
|
48 |
|
49 public: |
|
50 |
|
51 static CAddPresentityGroupMemberRequest* NewL( |
|
52 MImpsPrtPluginConnectionManager& aConnMan, |
|
53 TXIMPRequestId aRequestId ); |
|
54 |
|
55 static CAddPresentityGroupMemberRequest* NewLC( |
|
56 MImpsPrtPluginConnectionManager& aConnMan, |
|
57 TXIMPRequestId aRequestId ); |
|
58 |
|
59 virtual ~CAddPresentityGroupMemberRequest(); |
|
60 |
|
61 private: |
|
62 |
|
63 CAddPresentityGroupMemberRequest( |
|
64 MImpsPrtPluginConnectionManager& aConnMan, |
|
65 TXIMPRequestId aRequestId ); |
|
66 void ConstructL(); |
|
67 |
|
68 private: // from CActive |
|
69 |
|
70 void DoCancel(); |
|
71 void RunL(); |
|
72 TInt RunError( TInt aError ); |
|
73 |
|
74 public: |
|
75 |
|
76 void AddPresentityGroupMemberL( const MXIMPIdentity& aGroupId, |
|
77 const MXIMPIdentity& aMemberId, |
|
78 const TDesC16& aMemberDisplayName ); |
|
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 |
|
94 /** |
|
95 * Response |
|
96 */ |
|
97 HBufC8* iResponse; |
|
98 |
|
99 /** |
|
100 * Store the groupName as class member variable |
|
101 */ |
|
102 HBufC16* iGroupName; |
|
103 |
|
104 /** |
|
105 * Store the groupmember name as class smember variable |
|
106 */ |
|
107 HBufC16* iMemberName; |
|
108 |
|
109 /** |
|
110 * Store the groupmember name as class smember variable |
|
111 */ |
|
112 HBufC16* iMemberDisplayName; |
|
113 |
|
114 /** |
|
115 * ?description_of_pointer_member |
|
116 * Own. *** Write "Own" if this class owns the object pointed to; in |
|
117 other words, if this class is responsible for deleting it. |
|
118 */ |
|
119 |
|
120 MPEngXMLParser* iParser; |
|
121 |
|
122 /** |
|
123 * Imps Protocol Plugin Connection Manager |
|
124 * Not own. *** Write "Not own" if some other class owns this object. |
|
125 */ |
|
126 MImpsPrtPluginConnectionManager& iConnMan; |
|
127 |
|
128 }; |
|
129 |
|
130 |
|
131 #endif // __CIMPSPLUGINADDPRESENTITYGROUPMEMBERREQUEST_H__ |
|
132 |