equal
deleted
inserted
replaced
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 // |
7 // |
8 // Initial Contributors: |
8 // Initial Contributors: |
9 // Nokia Corporation - initial contribution. |
9 // Nokia Corporation - initial contribution. |
10 // |
10 // |
11 // Contributors: |
11 // Contributors: |
12 // |
12 // |
13 // Description: |
13 // Description: |
14 // |
14 // |
15 |
15 |
16 |
|
17 |
|
18 /** |
16 /** |
19 @file |
17 @file |
20 @publishedAll |
18 @publishedAll |
|
19 @released |
21 */ |
20 */ |
22 |
21 |
23 #ifndef __CS_SUBCONEVENTS_INL__ |
22 #ifndef __CS_SUBCONEVENTS_INL__ |
24 #define __CS_SUBCONEVENTS_INL__ |
23 #define __CS_SUBCONEVENTS_INL__ |
25 |
24 |
29 |
28 |
30 @return a CSubConGenEventParamsGranted object pointer if successful, |
29 @return a CSubConGenEventParamsGranted object pointer if successful, |
31 otherwise leaves with system error code. |
30 otherwise leaves with system error code. |
32 */ |
31 */ |
33 { |
32 { |
34 STypeId typeId(KSubConnGenericEventsImplUid, KSubConGenericEventParamsGranted); |
33 STypeId typeId = STypeId::CreateSTypeId(KSubConnGenericEventsImplUid, KSubConGenericEventParamsGranted); |
35 return static_cast<CSubConGenEventParamsGranted*>(CSubConNotificationEvent::NewL(typeId)); |
34 return static_cast<CSubConGenEventParamsGranted*>(CSubConNotificationEvent::NewL(typeId)); |
36 } |
35 } |
37 |
36 |
38 CSubConGenEventParamsGranted::CSubConGenEventParamsGranted() |
37 CSubConGenEventParamsGranted::CSubConGenEventParamsGranted() |
39 : CSubConNotificationEvent(), iFamily(KSubConGlobalFamily), iGenericSet(NULL) |
38 : CSubConNotificationEvent(), iFamily(KSubConGlobalFamily), iGenericSet(NULL) |
112 |
111 |
113 @return CSubConGenEventParamsChanged pointer if successful, |
112 @return CSubConGenEventParamsChanged pointer if successful, |
114 otherwise leaves with system error code. |
113 otherwise leaves with system error code. |
115 */ |
114 */ |
116 { |
115 { |
117 STypeId typeId(KSubConnGenericEventsImplUid, KSubConGenericEventParamsChanged); |
116 STypeId typeId = STypeId::CreateSTypeId(KSubConnGenericEventsImplUid, KSubConGenericEventParamsChanged); |
118 return static_cast<CSubConGenEventParamsChanged*>(CSubConNotificationEvent::NewL(typeId)); |
117 return static_cast<CSubConGenEventParamsChanged*>(CSubConNotificationEvent::NewL(typeId)); |
119 } |
118 } |
120 |
119 |
121 CSubConGenEventParamsChanged::CSubConGenEventParamsChanged() |
120 CSubConGenEventParamsChanged::CSubConGenEventParamsChanged() |
122 : CSubConGenEventParamsGranted() |
121 : CSubConGenEventParamsGranted() |
142 } |
141 } |
143 |
142 |
144 //==================================== |
143 //==================================== |
145 |
144 |
146 CSubConGenEventParamsRejected* CSubConGenEventParamsRejected::NewL() |
145 CSubConGenEventParamsRejected* CSubConGenEventParamsRejected::NewL() |
147 /** Creates a rejected parameter event sub-connection. |
146 /** Creates a rejected parameter event sub-connection. |
148 |
147 |
149 @return CSubConGenEventParamsRejected pointer if successful, |
148 @return CSubConGenEventParamsRejected pointer if successful, |
150 otherwise leaves with system error code. |
149 otherwise leaves with system error code. |
151 */ |
150 */ |
152 { |
151 { |
153 STypeId typeId(KSubConnGenericEventsImplUid, KSubConGenericEventParamsRejected); |
152 STypeId typeId = STypeId::CreateSTypeId(KSubConnGenericEventsImplUid, KSubConGenericEventParamsRejected); |
154 return static_cast<CSubConGenEventParamsRejected*>(CSubConNotificationEvent::NewL(typeId)); |
153 return static_cast<CSubConGenEventParamsRejected*>(CSubConNotificationEvent::NewL(typeId)); |
155 } |
154 } |
156 |
155 |
157 CSubConGenEventParamsRejected::CSubConGenEventParamsRejected() |
156 CSubConGenEventParamsRejected::CSubConGenEventParamsRejected() |
158 : CSubConNotificationEvent() |
157 : CSubConNotificationEvent() |
189 /** Sets parameter family type. |
188 /** Sets parameter family type. |
190 |
189 |
191 @param aFamilyId parameter family type. */ |
190 @param aFamilyId parameter family type. */ |
192 { |
191 { |
193 iFamilyId = aFamilyId; |
192 iFamilyId = aFamilyId; |
194 } |
193 } |
195 |
194 |
196 //==================================== |
195 //==================================== |
197 CSubConGenEventDataClientBase::CSubConGenEventDataClientBase() |
196 CSubConGenEventDataClientBase::CSubConGenEventDataClientBase() |
198 : CSubConNotificationEvent() |
197 : CSubConNotificationEvent() |
199 /** Empty CSubConGenEventDataClientBase constructor |
198 /** Empty CSubConGenEventDataClientBase constructor |
200 */ |
199 */ |
249 iDestAddress = aDestAddress; |
248 iDestAddress = aDestAddress; |
250 } |
249 } |
251 |
250 |
252 //==================================== |
251 //==================================== |
253 CSubConGenEventDataClientJoined* CSubConGenEventDataClientJoined::NewL() |
252 CSubConGenEventDataClientJoined* CSubConGenEventDataClientJoined::NewL() |
254 /** Creates a data client joined event sub-connection. |
253 /** Creates a data client joined event sub-connection. |
255 |
254 |
256 @return CSubConGenEventDataClientJoined pointer if successful, |
255 @return CSubConGenEventDataClientJoined pointer if successful, |
257 otherwise leaves with system error code. |
256 otherwise leaves with system error code. |
258 */ |
257 */ |
259 { |
258 { |
260 STypeId typeId(KSubConnGenericEventsImplUid, KSubConGenericEventDataClientJoined); |
259 STypeId typeId = STypeId::CreateSTypeId(KSubConnGenericEventsImplUid, KSubConGenericEventDataClientJoined); |
261 return static_cast<CSubConGenEventDataClientJoined*>(CSubConNotificationEvent::NewL(typeId)); |
260 return static_cast<CSubConGenEventDataClientJoined*>(CSubConNotificationEvent::NewL(typeId)); |
262 } |
261 } |
263 |
262 |
264 CSubConGenEventDataClientJoined::CSubConGenEventDataClientJoined() |
263 CSubConGenEventDataClientJoined::CSubConGenEventDataClientJoined() |
265 : CSubConGenEventDataClientBase() |
264 : CSubConGenEventDataClientBase() |
268 { |
267 { |
269 } |
268 } |
270 |
269 |
271 //===================================== |
270 //===================================== |
272 CSubConGenEventDataClientLeft* CSubConGenEventDataClientLeft::NewL() |
271 CSubConGenEventDataClientLeft* CSubConGenEventDataClientLeft::NewL() |
273 /** Creates a data client left event sub-connection. |
272 /** Creates a data client left event sub-connection. |
274 |
273 |
275 @return CSubConGenEventDataClientLeft pointer if successful, |
274 @return CSubConGenEventDataClientLeft pointer if successful, |
276 otherwise leaves with system error code. |
275 otherwise leaves with system error code. |
277 */ |
276 */ |
278 { |
277 { |
279 STypeId typeId(KSubConnGenericEventsImplUid, KSubConGenericEventDataClientLeft); |
278 STypeId typeId = STypeId::CreateSTypeId(KSubConnGenericEventsImplUid, KSubConGenericEventDataClientLeft); |
280 return static_cast<CSubConGenEventDataClientLeft*>(CSubConNotificationEvent::NewL(typeId)); |
279 return static_cast<CSubConGenEventDataClientLeft*>(CSubConNotificationEvent::NewL(typeId)); |
281 } |
280 } |
282 |
281 |
283 CSubConGenEventDataClientLeft::CSubConGenEventDataClientLeft() |
282 CSubConGenEventDataClientLeft::CSubConGenEventDataClientLeft() |
284 : CSubConGenEventDataClientBase() |
283 : CSubConGenEventDataClientBase() |
287 { |
286 { |
288 } |
287 } |
289 |
288 |
290 //==================================== |
289 //==================================== |
291 CSubConGenEventSubConDown* CSubConGenEventSubConDown::NewL() |
290 CSubConGenEventSubConDown* CSubConGenEventSubConDown::NewL() |
292 /** Creates a sub-connection down event. |
291 /** Creates a sub-connection down event. |
293 |
292 |
294 @return a CSubConGenEventSubConDown pointer if successful, |
293 @return a CSubConGenEventSubConDown pointer if successful, |
295 otherwise leaves with system error code. |
294 otherwise leaves with system error code. |
296 */ |
295 */ |
297 { |
296 { |
298 STypeId typeId(KSubConnGenericEventsImplUid, KSubConGenericEventSubConDown); |
297 STypeId typeId = STypeId::CreateSTypeId(KSubConnGenericEventsImplUid, KSubConGenericEventSubConDown); |
299 return static_cast<CSubConGenEventSubConDown*>(CSubConNotificationEvent::NewL(typeId)); |
298 return static_cast<CSubConGenEventSubConDown*>(CSubConNotificationEvent::NewL(typeId)); |
300 } |
299 } |
301 |
300 |
302 CSubConGenEventSubConDown::CSubConGenEventSubConDown() |
301 CSubConGenEventSubConDown::CSubConGenEventSubConDown() |
303 : CSubConNotificationEvent() |
302 : CSubConNotificationEvent() |
321 { |
320 { |
322 iError = aError; |
321 iError = aError; |
323 } |
322 } |
324 |
323 |
325 #endif // __CS_SUBCONEVENTS_INL__ |
324 #endif // __CS_SUBCONEVENTS_INL__ |
|
325 |