syncmlfw/common/obex/obexclient/src/Btobexsearcher.cpp
changeset 40 588ad05716be
parent 0 b497e44ab2fc
child 54 085438c28042
equal deleted inserted replaced
24:bf47f3b79154 40:588ad05716be
    78 CBTObexSearcher::~CBTObexSearcher()
    78 CBTObexSearcher::~CBTObexSearcher()
    79     {
    79     {
    80 	Cancel();
    80 	Cancel();
    81     delete iServiceSearcher;
    81     delete iServiceSearcher;
    82     delete iSettings;   
    82     delete iSettings;   
    83     if ( iNotifier.Handle() )
    83 /*    if ( iNotifier.Handle() )
    84         {
    84         {
    85         iNotifier.Close();
    85         iNotifier.Close();
    86         }
    86         }
       
    87 */        
    87     }
    88     }
    88 
    89 
    89 //----------------------------------------------------------------------------
    90 //----------------------------------------------------------------------------
    90 // CBTObexSearcher::RunL()
    91 // CBTObexSearcher::RunL()
    91 //----------------------------------------------------------------------------
    92 //----------------------------------------------------------------------------
   135 			{
   136 			{
   136             case EIdle:
   137             case EIdle:
   137                 {
   138                 {
   138                 if( iWaitingForBTPower && iOffline() != EFalse )
   139                 if( iWaitingForBTPower && iOffline() != EFalse )
   139                     {
   140                     {
   140                     if ( iNotifier.Handle() )
   141  /*                   if ( iNotifier.Handle() )
   141 				        {
   142 				        {
   142 				        iNotifier.Close();
   143 				        iNotifier.Close();
   143 				        }
   144 				        }
       
   145  */
   144                     TInt err = iSettings->ChangePowerStateTemporarily( );
   146                     TInt err = iSettings->ChangePowerStateTemporarily( );
   145                     if( err )
   147                     if( err )
   146                         {
   148                         {
   147                         NotifyDeviceErrorL( err );
   149                         NotifyDeviceErrorL( err );
   148                         }
   150                         }
   291     TBTEnabledInOfflineMode offlineAllowed = EBTDisabledInOfflineMode;
   293     TBTEnabledInOfflineMode offlineAllowed = EBTDisabledInOfflineMode;
   292     User::LeaveIfError( iSettings->GetOfflineModeSettings( offline, offlineAllowed ) );
   294     User::LeaveIfError( iSettings->GetOfflineModeSettings( offline, offlineAllowed ) );
   293     if( offline == ECoreAppUIsNetworkConnectionNotAllowed && 
   295     if( offline == ECoreAppUIsNetworkConnectionNotAllowed && 
   294          offlineAllowed == EBTEnabledInOfflineMode )
   296          offlineAllowed == EBTEnabledInOfflineMode )
   295         {
   297         {
   296         User::LeaveIfError( iNotifier.Connect() );
   298 /*        User::LeaveIfError( iNotifier.Connect() );
   297         TBTGenericQueryNotiferParamsPckg pckg;
   299         TBTGenericQueryNotiferParamsPckg pckg;
   298         pckg().iMessageType = EBTActivateOffLineQuery;
   300         pckg().iMessageType = EBTActivateOffLineQuery;
   299         pckg().iNameExists = EFalse;
   301         pckg().iNameExists = EFalse;
   300         iNotifier.StartNotifierAndGetResponse( iStatus, KBTGenericQueryNotifierUid, 
   302         iNotifier.StartNotifierAndGetResponse( iStatus, KBTGenericQueryNotifierUid, 
   301                                                 pckg, iOffline );
   303                                                 pckg, iOffline );
   302         SetActive();
   304         SetActive();
       
   305 */        
   303         }
   306         }
   304     else if( offline == ECoreAppUIsNetworkConnectionNotAllowed && 
   307     else if( offline == ECoreAppUIsNetworkConnectionNotAllowed && 
   305             offlineAllowed == EBTDisabledInOfflineMode )
   308             offlineAllowed == EBTDisabledInOfflineMode )
   306            {
   309            {
   307            NotifyDeviceErrorL( KErrNotSupported );
   310            NotifyDeviceErrorL( KErrNotSupported );