bluetoothengine/bteng/src/btengpairman.cpp
changeset 25 9c3798b88e30
parent 24 8930e1d1d530
equal deleted inserted replaced
24:8930e1d1d530 25:9c3798b88e30
   410     TRACE_FUNC_EXIT
   410     TRACE_FUNC_EXIT
   411     }
   411     }
   412 
   412 
   413 TInt CBTEngPairMan::AddUiCookieJustWorksPaired( const TBTNamelessDevice& aDev )
   413 TInt CBTEngPairMan::AddUiCookieJustWorksPaired( const TBTNamelessDevice& aDev )
   414     {
   414     {
       
   415 	TRACE_FUNC_ENTRY
   415     TInt err( KErrNone );
   416     TInt err( KErrNone );
   416     // There might be UI cookies used by other applications,
   417     // There might be UI cookies used by other applications,
   417     // we should not overwrite them. 
   418     // we should not overwrite them. 
   418     TInt32 cookie = aDev.IsValidUiCookie() ? aDev.UiCookie() : EBTUiCookieUndefined;
   419     TInt32 cookie = aDev.IsValidUiCookie() ? aDev.UiCookie() : EBTUiCookieUndefined;
   419     if ( !( cookie & EBTUiCookieJustWorksPaired ) )
   420     if ( !( cookie & EBTUiCookieJustWorksPaired ) )
   424         cookie |= EBTUiCookieJustWorksPaired;
   425         cookie |= EBTUiCookieJustWorksPaired;
   425         dev.SetUiCookie( cookie );
   426         dev.SetUiCookie( cookie );
   426         err = UpdateRegDevice( dev );
   427         err = UpdateRegDevice( dev );
   427         TRACE_INFO( ( _L( "[BTENG] CBTEngOtgPair write Ui cookie ret %d"), err ) );
   428         TRACE_INFO( ( _L( "[BTENG] CBTEngOtgPair write Ui cookie ret %d"), err ) );
   428         }
   429         }
       
   430     TRACE_FUNC_EXIT
   429     return err;
   431     return err;
   430     }
   432     }
   431 
   433 
   432 // ---------------------------------------------------------------------------
   434 // ---------------------------------------------------------------------------
   433 // update a nameless device in registry
   435 // update a nameless device in registry