syncmlfw/common/obex/obexclient/src/Btobexsearcher.cpp
branchRCL_3
changeset 62 19bba8228ff0
parent 61 b183ec05bd8c
--- a/syncmlfw/common/obex/obexclient/src/Btobexsearcher.cpp	Tue Aug 31 16:04:06 2010 +0300
+++ b/syncmlfw/common/obex/obexclient/src/Btobexsearcher.cpp	Wed Sep 01 12:27:42 2010 +0100
@@ -80,11 +80,10 @@
 	Cancel();
     delete iServiceSearcher;
     delete iSettings;   
-/*    if ( iNotifier.Handle() )
+    if ( iNotifier.Handle() )
         {
         iNotifier.Close();
         }
-*/        
     }
 
 //----------------------------------------------------------------------------
@@ -138,11 +137,10 @@
                 {
                 if( iWaitingForBTPower && iOffline() != EFalse )
                     {
- /*                   if ( iNotifier.Handle() )
+                    if ( iNotifier.Handle() )
 				        {
 				        iNotifier.Close();
 				        }
- */
                     TInt err = iSettings->ChangePowerStateTemporarily( );
                     if( err )
                         {
@@ -180,13 +178,14 @@
 			}
 		}
 	}
+
 // ----------------------------------------------------------------------------
 // CBTObexSearcher::RunError
 // ----------------------------------------------------------------------------
 TInt CBTObexSearcher::RunError ( TInt /*aError*/ )
     {
         return KErrNone;
-	}
+    }	
 
 //----------------------------------------------------------------------------
 // CBTObexSearcher::DoCancel()
@@ -302,14 +301,13 @@
     if( offline == ECoreAppUIsNetworkConnectionNotAllowed && 
          offlineAllowed == EBTEnabledInOfflineMode )
         {
-/*        User::LeaveIfError( iNotifier.Connect() );
+        User::LeaveIfError( iNotifier.Connect() );
         TBTGenericQueryNotiferParamsPckg pckg;
         pckg().iMessageType = EBTActivateOffLineQuery;
         pckg().iNameExists = EFalse;
         iNotifier.StartNotifierAndGetResponse( iStatus, KBTGenericQueryNotifierUid, 
                                                 pckg, iOffline );
         SetActive();
-*/        
         }
     else if( offline == ECoreAppUIsNetworkConnectionNotAllowed && 
             offlineAllowed == EBTDisabledInOfflineMode )