231 { |
231 { |
232 case ESubscription: |
232 case ESubscription: |
233 { |
233 { |
234 result = RUpnpGenaMessageFactory::SubscribeL( |
234 result = RUpnpGenaMessageFactory::SubscribeL( |
235 subscribe, servAddress, aPath, timeoutBuf ); |
235 subscribe, servAddress, aPath, timeoutBuf ); |
236 break; |
236 break; |
237 } |
237 } |
238 case EResubscription: |
238 case EResubscription: |
239 { |
239 { |
240 result = RUpnpGenaMessageFactory::ResubscribeL( |
240 result = RUpnpGenaMessageFactory::ResubscribeL( |
241 subscribe, servAddress, aPath, timeoutBuf ); |
241 subscribe, servAddress, aPath, timeoutBuf ); |
242 break; |
242 break; |
243 } |
243 } |
244 case EUnSubscription: |
244 case EUnSubscription: |
245 { |
245 { |
246 result = RUpnpGenaMessageFactory::UnsubscribeL( |
246 result = RUpnpGenaMessageFactory::UnsubscribeL( |
247 subscribe, servAddress, aPath); |
247 subscribe, servAddress, aPath); |
248 break; |
248 break; |
249 } |
249 } |
250 default: |
250 default: |
251 { |
251 { |
252 // Undefined. Should not come here at all! |
252 // Undefined. Should not come here at all! |
253 User::Leave(KErrArgument); |
253 User::Leave(KErrArgument); |
254 break; |
254 break; |
255 } |
255 } |
|
256 |
256 } |
257 } |
257 if(result == NULL) |
258 if(result == NULL) |
258 { |
259 { |
259 // To avoid Coverity FORWARD_NULL errors |
260 // To avoid Coverity FORWARD_NULL errors |
260 User::Leave(KErrArgument); |
261 User::Leave(KErrArgument); |
261 } |
262 } |
262 |
|
263 result->SetType( aType ); |
263 result->SetType( aType ); |
264 iSessionId = result->SessionId(); |
264 iSessionId = result->SessionId(); |
265 |
|
266 return result; |
265 return result; |
267 } |
266 } |
268 |
267 |
269 // ----------------------------------------------------------------------------- |
268 // ----------------------------------------------------------------------------- |
270 // CUpnpServiceInfo::ResubscribeL |
269 // CUpnpServiceInfo::ResubscribeL |