|
1 /* |
|
2 * Copyright (c) 2006, 2007 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: Presentity group handling interface for clients use. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "s_presentitygroups.h" |
|
20 |
|
21 /** |
|
22 * Protected destructor. |
|
23 * Object instancies can't be deleted via this interface. |
|
24 */ |
|
25 MyPresentityGroupsStub::~MyPresentityGroupsStub() {} |
|
26 |
|
27 //MyPresentityGroupsStub::MyPresentityGroupsStub {} |
|
28 |
|
29 /** |
|
30 * Subscribes presentity group list notifications. |
|
31 * |
|
32 * @return The request ID identifying the issued request. |
|
33 */ |
|
34 TXIMPRequestId MyPresentityGroupsStub::SubscribePresentityGroupListL() |
|
35 { |
|
36 TXIMPRequestId id; |
|
37 return id; |
|
38 } |
|
39 |
|
40 |
|
41 |
|
42 /** |
|
43 * Unsubscribes presentity group list notifications. |
|
44 * |
|
45 * @return The request ID identifying the issued request. |
|
46 */ |
|
47 TXIMPRequestId MyPresentityGroupsStub::UnsubscribePresentityGroupListL() |
|
48 { |
|
49 TXIMPRequestId id; |
|
50 return id; |
|
51 } |
|
52 |
|
53 |
|
54 |
|
55 /** |
|
56 * Creates presentity group. |
|
57 * |
|
58 * Note: Remote service may alter given presentity group ID and |
|
59 * display name. Altered ID and display names are signalled back |
|
60 * to client through MXIMPRequestCompleteEvent. |
|
61 * |
|
62 * @param [in] aGroupId |
|
63 * Identification for presentity group. |
|
64 * |
|
65 * @param [in] aDisplayName |
|
66 * Presentity group display name. |
|
67 * |
|
68 * |
|
69 * @return The request ID identifying the issued request. |
|
70 */ |
|
71 TXIMPRequestId MyPresentityGroupsStub::CreatePresentityGroupL( |
|
72 const MXIMPIdentity& /*aGroupId*/, |
|
73 const TDesC16& /*aDisplayName*/ ) |
|
74 { |
|
75 TXIMPRequestId id; |
|
76 return id; |
|
77 } |
|
78 |
|
79 |
|
80 /** |
|
81 * Deletes presentity group. |
|
82 * |
|
83 * @param [in] aGroupId |
|
84 * Identification for presentity group. |
|
85 * |
|
86 * @return The request ID identifying the issued request. |
|
87 */ |
|
88 TXIMPRequestId MyPresentityGroupsStub::DeletePresentityGroupL( |
|
89 const MXIMPIdentity& /*aGroupId*/ ) |
|
90 { |
|
91 TXIMPRequestId id; |
|
92 return id; |
|
93 } |
|
94 |
|
95 |
|
96 |
|
97 /** |
|
98 * Updates presentity group display name. |
|
99 * |
|
100 * Note: Remote service may alter given presentity group display name. |
|
101 * Altered display name is signalled back to client through |
|
102 * MXIMPRequestCompleteEvent. |
|
103 * |
|
104 * @param [in] aGroupId |
|
105 * Identification for presentity group. |
|
106 * |
|
107 * @param [in] aDisplayName |
|
108 * New display name for the presentity group. |
|
109 * |
|
110 * @return The request ID identifying the issued request. |
|
111 */ |
|
112 TXIMPRequestId MyPresentityGroupsStub::UpdatePresentityGroupDisplayNameL( |
|
113 const MXIMPIdentity& /*aGroupId*/, |
|
114 const TDesC16& /*aDisplayName*/ ) |
|
115 { |
|
116 TXIMPRequestId id; |
|
117 return id; |
|
118 } |
|
119 |
|
120 |
|
121 /** |
|
122 * Subscribes presentity group content notifications. |
|
123 * |
|
124 * @param [in] aGroupId |
|
125 * Identification for presentity group for which |
|
126 * to subscribe content notifications. |
|
127 * |
|
128 * @return The request ID identifying the issued request. |
|
129 */ |
|
130 TXIMPRequestId MyPresentityGroupsStub::SubscribePresentityGroupContentL( |
|
131 const MXIMPIdentity& /*aGroupId*/ ) |
|
132 { |
|
133 TXIMPRequestId id; |
|
134 return id; |
|
135 } |
|
136 |
|
137 |
|
138 /** |
|
139 * Unsubscribes presentity group content notifications. |
|
140 * |
|
141 * @param [in] aGroupId |
|
142 * Identification for presentity group for which |
|
143 * content notification subscription to terminate. |
|
144 * |
|
145 * @return The request ID identifying the issued request. |
|
146 */ |
|
147 TXIMPRequestId MyPresentityGroupsStub::UnsubscribePresentityGroupContentL( |
|
148 const MXIMPIdentity& /*aGroupId*/ ) |
|
149 { |
|
150 TXIMPRequestId id; |
|
151 return id; |
|
152 } |
|
153 |
|
154 |
|
155 /** |
|
156 * Requests the protocol to add new member to |
|
157 * identified presentity group. |
|
158 * |
|
159 * |
|
160 * Note: Remote service may alter given member and |
|
161 * display name. Altered ID and display names |
|
162 * are signalled back to client through MXIMPRequestCompleteEvent. |
|
163 * |
|
164 * @param [in] aGroupId |
|
165 * Identification of the presentity group where to |
|
166 * add new member. |
|
167 * |
|
168 * @param [in] aMemberId |
|
169 * Identification of the new member. |
|
170 * |
|
171 * @param [in] aMemberDisplayName |
|
172 * Display name for the added member. |
|
173 * |
|
174 * @return The request ID identifying the issued request. |
|
175 */ |
|
176 TXIMPRequestId MyPresentityGroupsStub::AddPresentityGroupMemberL( |
|
177 const MXIMPIdentity& /*aGroupId*/, |
|
178 const MXIMPIdentity& /*aMemberId*/, |
|
179 const TDesC16& /*aMemberDisplayName*/ ) |
|
180 { |
|
181 TXIMPRequestId id; |
|
182 return id; |
|
183 } |
|
184 |
|
185 |
|
186 /** |
|
187 * Requests the XIMPFw to remove member from |
|
188 * identified presentity group. |
|
189 * |
|
190 * @param [in] aGroupId |
|
191 * Identification of the presentity group from |
|
192 * where to remove member. |
|
193 * |
|
194 * @param [in] aMemberId |
|
195 * Identification of the member to remove. |
|
196 * |
|
197 * @return The request ID identifying the issued request. |
|
198 */ |
|
199 TXIMPRequestId MyPresentityGroupsStub::RemovePresentityGroupMemberL( |
|
200 const MXIMPIdentity& /*aGroupId*/, |
|
201 const MXIMPIdentity& /*aMemberId*/ ) |
|
202 { |
|
203 TXIMPRequestId id; |
|
204 return id; |
|
205 } |
|
206 |
|
207 |
|
208 |
|
209 /** |
|
210 * Requests the XIMPFw to update presentity group |
|
211 * member display name. |
|
212 * |
|
213 * Note: Remote service may alter given presentity group member |
|
214 * display name. Altered display name is signalled back |
|
215 * to client through MXIMPRequestCompleteEvent. |
|
216 * |
|
217 * @param [in] aGroupId |
|
218 * Identification for presentity group. |
|
219 * |
|
220 * @param [in] aMemberId |
|
221 * Identification of the member which display |
|
222 * name to update. |
|
223 * |
|
224 * @param [in] aMemberDisplayName |
|
225 * New display name for the member. |
|
226 * |
|
227 * @return The request ID identifying the issued request. |
|
228 */ |
|
229 TXIMPRequestId MyPresentityGroupsStub::UpdatePresentityGroupMemberDisplayNameL( |
|
230 const MXIMPIdentity& /*aGroupId*/, |
|
231 const MXIMPIdentity& /*aMemberId*/, |
|
232 const TDesC16& /*aMemberDisplayName*/ ) |
|
233 { |
|
234 TXIMPRequestId id; |
|
235 return id; |
|
236 } |
|
237 |
|
238 |
|
239 |
|
240 const TAny* MyPresentityGroupsStub::GetInterface( |
|
241 TInt32 /*aInterfaceId*/, |
|
242 TIfGetOps /*aOps*/ ) const |
|
243 { |
|
244 return NULL; |
|
245 } |
|
246 |
|
247 TAny* MyPresentityGroupsStub::GetInterface( |
|
248 TInt32 /*aInterfaceId*/, |
|
249 TIfGetOps /*aOps*/ ) |
|
250 { |
|
251 return NULL; |
|
252 } |
|
253 |
|
254 TInt32 MyPresentityGroupsStub::GetInterfaceId() const |
|
255 { |
|
256 return 0; |
|
257 } |