equal
deleted
inserted
replaced
333 // --------------------------------------------------------------------------- |
333 // --------------------------------------------------------------------------- |
334 // |
334 // |
335 void CBTEngServer::QueueTimer( CBTEngServer::TTimerQueued aTimer, TInt64 aInterval ) |
335 void CBTEngServer::QueueTimer( CBTEngServer::TTimerQueued aTimer, TInt64 aInterval ) |
336 { |
336 { |
337 TRACE_FUNC_ARG( ( _L( "queueing timer %d" ), (TInt) aTimer ) ) |
337 TRACE_FUNC_ARG( ( _L( "queueing timer %d" ), (TInt) aTimer ) ) |
|
338 __ASSERT_DEBUG( iTimer, PanicServer( EBTEngPanicMemberVarIsNull ) ); |
338 iTimerQueued |= aTimer; |
339 iTimerQueued |= aTimer; |
339 TTimeIntervalMicroSeconds interval( aInterval ); |
340 TTimeIntervalMicroSeconds interval( aInterval ); |
340 switch( aTimer ) |
341 switch( aTimer ) |
341 { |
342 { |
342 case EScanModeTimer: |
343 case EScanModeTimer: |
362 // --------------------------------------------------------------------------- |
363 // --------------------------------------------------------------------------- |
363 // |
364 // |
364 void CBTEngServer::RemoveTimer( CBTEngServer::TTimerQueued aTimer ) |
365 void CBTEngServer::RemoveTimer( CBTEngServer::TTimerQueued aTimer ) |
365 { |
366 { |
366 TRACE_FUNC_ARG( ( _L( "removing timer %d" ), (TInt) aTimer ) ) |
367 TRACE_FUNC_ARG( ( _L( "removing timer %d" ), (TInt) aTimer ) ) |
|
368 if(!iTimer) |
|
369 { |
|
370 return; // not fully constructed yet, don't do anything |
|
371 } |
367 iTimerQueued &= ~aTimer; |
372 iTimerQueued &= ~aTimer; |
368 // Timers can be removed without being queued, no need to check. |
373 // Timers can be removed without being queued, no need to check. |
369 switch( aTimer ) |
374 switch( aTimer ) |
370 { |
375 { |
371 case EScanModeTimer: |
376 case EScanModeTimer: |