|
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 __CSUBSCRIBEPRESENTITYGROUPCONTENTREQUEST_H__ |
|
20 #define __CSUBSCRIBEPRESENTITYGROUPCONTENTREQUEST_H__ |
|
21 |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <ximpbase.h> |
|
26 #include "impsdebugprint.h" |
|
27 #include <e32des16.h> |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class MImpsPrtPluginConnectionManager; |
|
31 class MPEngXMLParser; |
|
32 class MPEngXmlSerializer; |
|
33 class MXIMPIdentity; |
|
34 |
|
35 /** |
|
36 * CSubscribePresentityGroupContentRequest |
|
37 * |
|
38 * Issue Add Presentity Group Member Request to Network Server |
|
39 * |
|
40 * @lib ?library |
|
41 * @since S60 v4.0 |
|
42 */ |
|
43 |
|
44 class CSubscribePresentityGroupContentRequest: public CActive |
|
45 |
|
46 |
|
47 { |
|
48 |
|
49 public: |
|
50 |
|
51 static CSubscribePresentityGroupContentRequest* NewL( |
|
52 MImpsPrtPluginConnectionManager& aConnMan, |
|
53 TXIMPRequestId aRequestId ); |
|
54 |
|
55 static CSubscribePresentityGroupContentRequest* NewLC( |
|
56 MImpsPrtPluginConnectionManager& aConnMan, |
|
57 TXIMPRequestId aRequestId ); |
|
58 |
|
59 virtual ~CSubscribePresentityGroupContentRequest(); |
|
60 |
|
61 private: |
|
62 |
|
63 CSubscribePresentityGroupContentRequest( |
|
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 SubscribePresentityGroupContentL( |
|
77 const MXIMPIdentity& aGroupId ); |
|
78 |
|
79 |
|
80 private: // data |
|
81 |
|
82 /** |
|
83 * Request Id from PrFw |
|
84 */ |
|
85 |
|
86 TXIMPRequestId iRequestId; |
|
87 |
|
88 /** |
|
89 * Send data request to pure data handler generates the id |
|
90 */ |
|
91 TInt iSendId; |
|
92 HBufC8* iResponse; |
|
93 HBufC16* iGroupName; |
|
94 HBufC16* iContactName; |
|
95 HBufC16* iUserId; |
|
96 HBufC16* iGroupDisplayName; |
|
97 /** |
|
98 * ?description_of_pointer_member |
|
99 * Own. *** Write "Own" if this class owns the object pointed to; in |
|
100 other words, if this class is responsible for deleting it. |
|
101 */ |
|
102 |
|
103 MPEngXMLParser* iParser; |
|
104 |
|
105 /** |
|
106 * Imps Protocol Plugin Connection Manager |
|
107 * Not own. *** Write "Not own" if some other class owns this object. |
|
108 */ |
|
109 MImpsPrtPluginConnectionManager& iConnMan; |
|
110 |
|
111 }; |
|
112 |
|
113 |
|
114 #endif // __CSUBSCRIBEPRESENTITYGROUPCONTENTREQUEST_H__ |
|
115 |