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 //---------------------------------------------------------------------------- |
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 ); |