equal
deleted
inserted
replaced
247 // -------------------------------------------------------------------------- |
247 // -------------------------------------------------------------------------- |
248 // |
248 // |
249 void CUpnpContentServer::Stop() |
249 void CUpnpContentServer::Stop() |
250 { |
250 { |
251 __LOG8_1( "%s begin.", __PRETTY_FUNCTION__ ); |
251 __LOG8_1( "%s begin.", __PRETTY_FUNCTION__ ); |
252 /* if ( iIdle ) |
252 if ( iIdle ) |
253 { |
253 { |
254 iIdle->Cancel(); |
254 iIdle->Cancel(); |
255 } |
255 } |
256 else |
256 else |
257 { |
257 { |
259 __ASSERT( err == KErrNone, __FILE__, __LINE__ ); |
259 __ASSERT( err == KErrNone, __FILE__, __LINE__ ); |
260 } |
260 } |
261 |
261 |
262 iIdle->Start( KShutdownTimeout, |
262 iIdle->Start( KShutdownTimeout, |
263 KShutdownTimeout, |
263 KShutdownTimeout, |
264 TCallBack( Shutdown, this ) );*/ |
264 TCallBack( Shutdown, this ) ); |
265 __LOG8_1( "%s end.", __PRETTY_FUNCTION__ ); |
265 __LOG8_1( "%s end.", __PRETTY_FUNCTION__ ); |
266 } |
266 } |
267 |
267 |
268 // -------------------------------------------------------------------------- |
268 // -------------------------------------------------------------------------- |
269 // CUpnpContentServer::Shutdown |
269 // CUpnpContentServer::Shutdown |
288 // |
288 // |
289 TInt CUpnpContentServer::RequestConnectionLostL( |
289 TInt CUpnpContentServer::RequestConnectionLostL( |
290 const TInt aIapId ) |
290 const TInt aIapId ) |
291 { |
291 { |
292 __LOG8_1( "%s begin.", __PRETTY_FUNCTION__ ); |
292 __LOG8_1( "%s begin.", __PRETTY_FUNCTION__ ); |
293 if ( iHandler ) |
|
294 { |
|
295 iHandler->ValidateDefaultContainersL(); |
|
296 } |
|
297 TInt err( KErrNone ); |
293 TInt err( KErrNone ); |
298 if ( !iConMon ) |
294 if ( !iConMon ) |
299 { |
295 { |
300 iConMon = CUPnPConnectionMonitor::NewL( *this, aIapId ); |
296 iConMon = CUPnPConnectionMonitor::NewL( aIapId ); |
|
297 iConMon->SetObserver( *this ); |
301 iActiveIapId = aIapId; |
298 iActiveIapId = aIapId; |
302 } |
299 } |
303 else if ( iActiveIapId != aIapId ) |
300 else if ( iActiveIapId != aIapId ) |
304 { |
301 { |
305 err = KErrInUse; |
302 err = KErrInUse; |
327 // -------------------------------------------------------------------------- |
324 // -------------------------------------------------------------------------- |
328 // CUpnpContentServer::ConnectionLost |
325 // CUpnpContentServer::ConnectionLost |
329 // ( other items are commented in header ) |
326 // ( other items are commented in header ) |
330 // -------------------------------------------------------------------------- |
327 // -------------------------------------------------------------------------- |
331 // |
328 // |
332 void CUpnpContentServer::ConnectionLost() |
329 void CUpnpContentServer::ConnectionLost( TBool /*aUserOriented*/ ) |
333 { |
330 { |
334 __LOG8_1( "%s begin.", __PRETTY_FUNCTION__ ); |
331 __LOG8_1( "%s begin.", __PRETTY_FUNCTION__ ); |
335 |
332 |
336 TRAP_IGNORE( iHandler->ConnectionLostL() ); |
333 TRAP_IGNORE( iHandler->ConnectionLostL() ); |
337 |
334 |