bearermanagement/mpm/src/mpmwlanquerydialog.cpp
branchRCL_3
changeset 26 bb1f80fb7db2
parent 25 83ca720e2b9a
equal deleted inserted replaced
25:83ca720e2b9a 26:bb1f80fb7db2
   205             }
   205             }
   206         else if ( iStatus.Int() == KErrCancel )
   206         else if ( iStatus.Int() == KErrCancel )
   207             {
   207             {
   208             iIapSelection.Session()->MyServer().SetOfflineWlanQueryResponse(
   208             iIapSelection.Session()->MyServer().SetOfflineWlanQueryResponse(
   209                     EOfflineResponseNo );
   209                     EOfflineResponseNo );
       
   210             iIapSelection.Session()->MyServer().StartOfflineQueryTimer();
   210             MPMLOGSTRING2( "CMPMWlanQueryDialog::RunL offline query returned %d", 
   211             MPMLOGSTRING2( "CMPMWlanQueryDialog::RunL offline query returned %d", 
   211                            iStatus.Int() )
   212                            iStatus.Int() )
   212             }
   213             }
   213         else
   214         else
   214             {
   215             {
   472             {
   473             {
   473             MPMLOGSTRING( "CMPMWlanQueryDialog::StartWlanQuery offline note query not shown due to disabled queries" )
   474             MPMLOGSTRING( "CMPMWlanQueryDialog::StartWlanQuery offline note query not shown due to disabled queries" )
   474             iIapSelection.UserWlanSelectionDoneL( KErrPermissionDenied, iWlanIapId );
   475             iIapSelection.UserWlanSelectionDoneL( KErrPermissionDenied, iWlanIapId );
   475             }
   476             }
   476         else
   477         else
   477             {
   478             {         
   478             MPMLOGSTRING( "CMPMWlanQueryDialog::StartWlanQuery, starting offline note" )            
       
   479             iWlanQueryState = EOffline;
   479             iWlanQueryState = EOffline;
   480             iNotifier.StartNotifierAndGetResponse( iStatus, 
   480             if ( !iIapSelection.Session()->MyServer().IsOfflineQueryTimerOn() )
   481                                                    KUidCOfflineWlanNoteDlg, 
   481                 {
   482                                                    KNullDesC8(), 
   482                 MPMLOGSTRING( "CMPMWlanQueryDialog::StartWlanQuery, starting offline query" )        
   483                                                    iOfflineReply );
   483                 iNotifier.StartNotifierAndGetResponse( iStatus, 
   484             SetActive();
   484                                                        KUidCOfflineWlanNoteDlg, 
       
   485                                                        KNullDesC8(), 
       
   486                                                        iOfflineReply );
       
   487                 SetActive();
       
   488                 }
       
   489             else
       
   490                 {
       
   491                 MPMLOGSTRING( "CMPMWlanQueryDialog::StartWlanQuery, offline note not shown as OfflineQueryTimer is active" )        
       
   492                 iIapSelection.UserWlanSelectionDoneL( KErrPermissionDenied, iWlanIapId );
       
   493                 }
   485             }
   494             }
   486         }
   495         }
   487     // if easy wlan iap and some wlan iap started, use existing connection
   496     // if easy wlan iap and some wlan iap started, use existing connection
   488     //
   497     //
   489     else if( iIapSelection.Session()->MyServer().CommsDatAccess()->CheckEasyWLanL( iWlanIapId )  && 
   498     else if( iIapSelection.Session()->MyServer().CommsDatAccess()->CheckEasyWLanL( iWlanIapId )  &&