|
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: Remove presentity group member request |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __CREMOVEPRESENTITYGROUPMEMBERREQUEST_H__ |
|
20 #define __CREMOVEPRESENTITYGROUPMEMBERREQUEST_H__ |
|
21 |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <ximpbase.h> |
|
26 |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class MOSSProtocolConnectionManager; |
|
30 class MXIMPIdentity; |
|
31 |
|
32 |
|
33 /** |
|
34 * CRemovePresentityGroupMemberRequest |
|
35 * |
|
36 * Issue Remove Presentity Group Member Request to Network Server |
|
37 * |
|
38 */ |
|
39 |
|
40 class CRemovePresentityGroupMemberRequest: public CActive |
|
41 |
|
42 |
|
43 { |
|
44 |
|
45 public: |
|
46 |
|
47 |
|
48 |
|
49 static CRemovePresentityGroupMemberRequest* NewLC( |
|
50 MOSSProtocolConnectionManager& aConnMan, |
|
51 TXIMPRequestId aRequestId ); |
|
52 |
|
53 virtual ~CRemovePresentityGroupMemberRequest(); |
|
54 |
|
55 private: |
|
56 |
|
57 CRemovePresentityGroupMemberRequest( |
|
58 MOSSProtocolConnectionManager& aConnMan, |
|
59 TXIMPRequestId aRequestId ); |
|
60 void ConstructL(); |
|
61 |
|
62 private: // from CActive |
|
63 |
|
64 void DoCancel(); |
|
65 /* |
|
66 * RunL() function also deletes the request object once the activity is done |
|
67 * |
|
68 */ |
|
69 void RunL(); |
|
70 TInt RunError( TInt aError ); |
|
71 |
|
72 public: |
|
73 /** |
|
74 * Remove presentity group member from the list |
|
75 * @param aGroupId group identity |
|
76 * @param aGroupId group member identity |
|
77 */ |
|
78 void RemovePresentityGroupMemberL(const MXIMPIdentity& aGroupId, |
|
79 const MXIMPIdentity& aMemberId); |
|
80 |
|
81 private: // data |
|
82 |
|
83 /** |
|
84 * Request Id from ximpfw |
|
85 */ |
|
86 TXIMPRequestId iRequestId; |
|
87 |
|
88 /** |
|
89 * Send data request to pure data handler generates the id |
|
90 */ |
|
91 TInt iSendId; |
|
92 |
|
93 /** |
|
94 * Oss Protocol Plugin Connection Manager |
|
95 * Not own. *** Write "Not own" if some other class owns this object. |
|
96 */ |
|
97 MOSSProtocolConnectionManager& iConnMan; |
|
98 |
|
99 // owns : userid id to delete |
|
100 HBufC* iUserId; |
|
101 |
|
102 }; |
|
103 |
|
104 |
|
105 #endif // __CREMOVEPRESENTITYGROUPMEMBERREQUEST_H__ |
|
106 |