|
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: Create Presentity Group Request |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __CIMPSPLUGINCREATEPRESENTITYGROUPREQUEST_H__ |
|
20 #define __CIMPSPLUGINCREATEPRESENTITYGROUPREQUEST_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 * CCreatePresentityGroupRequest |
|
37 * |
|
38 * Issue Request to Network Server to Create Contact List |
|
39 * |
|
40 * @lib ?library |
|
41 * @since S60 v4.0 |
|
42 */ |
|
43 |
|
44 class CCreatePresentityGroupRequest: public CActive |
|
45 |
|
46 |
|
47 { |
|
48 |
|
49 public: |
|
50 |
|
51 static CCreatePresentityGroupRequest* NewL( |
|
52 MImpsPrtPluginConnectionManager& aConnMan, |
|
53 TXIMPRequestId aRequestId ); |
|
54 |
|
55 static CCreatePresentityGroupRequest* NewLC( |
|
56 MImpsPrtPluginConnectionManager& aConnMan, |
|
57 TXIMPRequestId aRequestId ); |
|
58 |
|
59 virtual ~CCreatePresentityGroupRequest(); |
|
60 |
|
61 |
|
62 private: |
|
63 |
|
64 CCreatePresentityGroupRequest( |
|
65 MImpsPrtPluginConnectionManager& aConnMan, |
|
66 TXIMPRequestId aRequestId ); |
|
67 void ConstructL(); |
|
68 |
|
69 |
|
70 private: // from CActive |
|
71 |
|
72 void DoCancel(); |
|
73 void RunL(); |
|
74 TInt RunError( TInt aError ); |
|
75 |
|
76 |
|
77 public: |
|
78 |
|
79 void CreatePresentityGroupRequestL( const MXIMPIdentity& aIdentity, |
|
80 const TDesC16& aDisplayName ); |
|
81 |
|
82 |
|
83 private: // data |
|
84 |
|
85 /** |
|
86 * Request Id from PrFw |
|
87 */ |
|
88 |
|
89 TXIMPRequestId iRequestId; |
|
90 |
|
91 /** |
|
92 * Send data request to pure data handler generates the id |
|
93 */ |
|
94 |
|
95 TInt iSendId; |
|
96 |
|
97 /** |
|
98 * Response that is received from the server |
|
99 */ |
|
100 HBufC8* iResponse; |
|
101 |
|
102 HBufC16* iGroupId; |
|
103 /** |
|
104 * Group Displayname for the created group |
|
105 */ |
|
106 HBufC16* iGroupDisplayName; |
|
107 |
|
108 |
|
109 /** |
|
110 * ?description_of_pointer_member |
|
111 * Own. *** Write "Own" if this class owns the object pointed to; in |
|
112 other words, if this class is responsible for deleting it. |
|
113 */ |
|
114 |
|
115 MPEngXMLParser* iParser; |
|
116 |
|
117 /** |
|
118 * Imps Protocol Plugin Connection Manager |
|
119 * Not own. *** Write "Not own" if some other class owns this object. |
|
120 */ |
|
121 MImpsPrtPluginConnectionManager& iConnMan; |
|
122 }; |
|
123 |
|
124 |
|
125 #endif // __CIMPSPLUGINCREATEPRESENTITYGROUPREQUEST_H__ |
|
126 |