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