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: Subscribe Presentity Group Content Request |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __CSUBSCRIBEPRESENTITYGROUPCONTENTREQUEST_H__ |
|
20 #define __CSUBSCRIBEPRESENTITYGROUPCONTENTREQUEST_H__ |
|
21 |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <ximpbase.h> |
|
26 #include <e32des16.h> |
|
27 #include "ossprotocloliterals.h" |
|
28 // FORWARD DECLARATIONS |
|
29 |
|
30 class MOSSProtocolConnectionManager; |
|
31 |
|
32 class MXIMPIdentity; |
|
33 |
|
34 /** |
|
35 * CSubscribePresentityGroupContentRequest |
|
36 * |
|
37 * Fetches the contacts and update to ximp fw |
|
38 * |
|
39 */ |
|
40 |
|
41 class CSubscribePresentityGroupContentRequest: public CActive |
|
42 |
|
43 |
|
44 { |
|
45 |
|
46 public: |
|
47 |
|
48 static CSubscribePresentityGroupContentRequest* NewL ( |
|
49 MOSSProtocolConnectionManager& aConnMan, |
|
50 TXIMPRequestId aRequestId ); |
|
51 |
|
52 static CSubscribePresentityGroupContentRequest* NewLC ( |
|
53 MOSSProtocolConnectionManager& aConnMan, |
|
54 TXIMPRequestId aRequestId ); |
|
55 |
|
56 virtual ~CSubscribePresentityGroupContentRequest(); |
|
57 |
|
58 private: |
|
59 |
|
60 CSubscribePresentityGroupContentRequest ( |
|
61 MOSSProtocolConnectionManager& aConnMan, |
|
62 TXIMPRequestId aRequestId ); |
|
63 void ConstructL(); |
|
64 /** |
|
65 * IssueRequest |
|
66 */ |
|
67 void IssueRequest(); |
|
68 /** |
|
69 * populate data |
|
70 */ |
|
71 void PopulateDataL(); |
|
72 |
|
73 private: // from CActive |
|
74 |
|
75 void DoCancel(); |
|
76 /* |
|
77 * RunL() function also deletes the request object once the activity is done |
|
78 * |
|
79 */ |
|
80 void RunL(); |
|
81 TInt RunError ( TInt aError ); |
|
82 |
|
83 public: |
|
84 /** |
|
85 * subscribe to get group members of the list |
|
86 * @param aGroupId group identity |
|
87 */ |
|
88 void SubscribePresentityGroupContentL ( |
|
89 const MXIMPIdentity& aGroupId ); |
|
90 |
|
91 public: |
|
92 |
|
93 |
|
94 /** |
|
95 * parse the data and update the data cache of ximp.send event back to ximp |
|
96 */ |
|
97 |
|
98 void ProcessIncomingDataL(); |
|
99 |
|
100 private: // data |
|
101 |
|
102 /** |
|
103 * Request Id from ximpfw |
|
104 */ |
|
105 |
|
106 TXIMPRequestId iRequestId; |
|
107 |
|
108 /** |
|
109 * Send data request to pure data handler generates the id |
|
110 */ |
|
111 TInt iSendId; |
|
112 |
|
113 /** |
|
114 * Array of conatcts |
|
115 * Own |
|
116 */ |
|
117 //RPointerArray<HBufC> iContacts; |
|
118 /** |
|
119 * Oss Protocol Plugin Connection Manager |
|
120 * Not own. *** Write "Not own" if some other class owns this object. |
|
121 */ |
|
122 MOSSProtocolConnectionManager& iConnMan; |
|
123 |
|
124 /* |
|
125 * Stores groupname |
|
126 * Own |
|
127 */ |
|
128 HBufC* iGroupName; |
|
129 /* |
|
130 * Listcount |
|
131 */ |
|
132 TInt iListcount; |
|
133 }; |
|
134 |
|
135 |
|
136 #endif // __CSUBSCRIBEPRESENTITYGROUPCONTENTREQUEST_H__ |
|
137 |
|