bluetoothengine/bteng/src/btengserver.cpp
changeset 65 001a94c71129
parent 42 b72428996822
equal deleted inserted replaced
57:5ebadcda06cb 65:001a94c71129
   566 // debug mode. If there are existing connections, queue the timer again.
   566 // debug mode. If there are existing connections, queue the timer again.
   567 // ---------------------------------------------------------------------------
   567 // ---------------------------------------------------------------------------
   568 //
   568 //
   569 TInt CBTEngServer::DebugModeTimerCallBack( TAny* aPtr )
   569 TInt CBTEngServer::DebugModeTimerCallBack( TAny* aPtr )
   570     {
   570     {
       
   571     TRACE_FUNC_ENTRY
   571     __ASSERT_ALWAYS(aPtr, PanicServer(EBTEngPanicArgumentIsNull) );
   572     __ASSERT_ALWAYS(aPtr, PanicServer(EBTEngPanicArgumentIsNull) );
   572     // Set our internal debug mode key to off. Ignore error, not critical here.
       
   573     (void) RProperty::Set( KPSUidBluetoothTestingMode, KBTSspDebugmode, EFalse );
       
   574     CBTEngServer* server = (CBTEngServer*) aPtr;
   573     CBTEngServer* server = (CBTEngServer*) aPtr;
   575     TRAP_IGNORE( server->SettingsManager()->CheckSspDebugModeL( EFalse ) );
   574     server->RemoveTimer( ESspDebugModeTimer );
       
   575     if( server->KeyWatcher()->GetSspDebugModeKeyValue() )
       
   576         {
       
   577         // Set our internal debug mode key to off. Ignore error, not critical here.
       
   578         (void) RProperty::Set( KPSUidBluetoothTestingMode, KBTSspDebugmode, EFalse );
       
   579         }
       
   580     TRAP_IGNORE( server->SettingsManager()->CheckSspDebugModeL( EFalse ) );    
       
   581     TRACE_FUNC_EXIT
   576     return KErrNone;
   582     return KErrNone;
   577     }
   583     }
   578 
   584 
   579 
   585 
   580 // ---------------------------------------------------------------------------
   586 // ---------------------------------------------------------------------------