equal
deleted
inserted
replaced
319 // ---------------------------------------------------------------------------- |
319 // ---------------------------------------------------------------------------- |
320 // |
320 // |
321 EXPORT_C void CWsfModel::DisconnectL() |
321 EXPORT_C void CWsfModel::DisconnectL() |
322 { |
322 { |
323 LOG_ENTERFN( "CWsfModel::DisconnectL" ); |
323 LOG_ENTERFN( "CWsfModel::DisconnectL" ); |
324 iSession.DisconnectWlanBearerL(); |
324 TBool disconnected = iSession.DisconnectWlanBearerL(); |
|
325 LOG_WRITEF( "disconnected = %d", disconnected ); |
325 iConnectedIapId = 0; |
326 iConnectedIapId = 0; |
326 iConnectedNetId = 0; |
327 iConnectedNetId = 0; |
327 iConnectOnly = EFalse; |
328 iConnectOnly = EFalse; |
328 iRefreshing = iSession.RequestScanL(); |
329 if ( !disconnected ) |
|
330 { |
|
331 iRefreshing = iSession.RequestScanL(); |
|
332 } |
329 } |
333 } |
330 |
334 |
331 |
335 |
332 // ---------------------------------------------------------------------------- |
336 // ---------------------------------------------------------------------------- |
333 // CWsfModel::Disconnect |
337 // CWsfModel::Disconnect |
940 User::LeaveIfError( appArcSession.Connect() ); // connect to AppArc server |
944 User::LeaveIfError( appArcSession.Connect() ); // connect to AppArc server |
941 CleanupClosePushL( appArcSession ); |
945 CleanupClosePushL( appArcSession ); |
942 |
946 |
943 // check if the app is already running ... and kill it. |
947 // check if the app is already running ... and kill it. |
944 TUid id( TUid::Uid( KHelperApUid.iUid ) ); |
948 TUid id( TUid::Uid( KHelperApUid.iUid ) ); |
945 TApaTaskList taskList( CEikonEnv::Static()->WsSession() ); |
949 TApaTaskList taskList( iEikEnv->WsSession() ); |
946 TApaTask task = taskList.FindApp( id ); |
950 TApaTask task = taskList.FindApp( id ); |
947 |
951 |
948 if ( task.Exists() ) |
952 if ( task.Exists() ) |
949 { |
953 { |
950 task.EndTask(); |
954 task.EndTask(); |