connectionutilities/ConnectionDialogs/ConnectionUiUtilities/src/ActiveWrapper.cpp
branchRCL_3
changeset 58 83ca720e2b9a
parent 57 05bc53fe583b
equal deleted inserted replaced
57:05bc53fe583b 58:83ca720e2b9a
    69 // might leave.
    69 // might leave.
    70 // ---------------------------------------------------------
    70 // ---------------------------------------------------------
    71 //
    71 //
    72 CActiveWrapper::CActiveWrapper( const TUint aIndexOfNote ) 
    72 CActiveWrapper::CActiveWrapper( const TUint aIndexOfNote ) 
    73 : CActive( CActive::EPriorityStandard ),
    73 : CActive( CActive::EPriorityStandard ),
    74   iSSID( NULL ),
    74   iIndexOfNote( aIndexOfNote )
    75   iConnectionMode( NULL ),
       
    76   iSecurityMode( NULL ),
       
    77   iExtSecurityMode( NULL ),
       
    78   iProtectedSetupSupported( NULL ),
       
    79   iRS( NULL ),
       
    80   iIndexOfNote( aIndexOfNote ),
       
    81   iKey( NULL ),
       
    82   iHex( NULL )
       
    83     {
    75     {
    84     }
    76     }
    85 
    77 
    86 
    78 
    87 // ---------------------------------------------------------
    79 // ---------------------------------------------------------
   205             {
   197             {
   206             iNotif.CancelOffLineWlanNote();
   198             iNotif.CancelOffLineWlanNote();
   207             break;
   199             break;
   208             }
   200             }
   209 
   201 
       
   202         case EConnViaDestCM:
       
   203             {
       
   204             iNotif.CancelConnectedViaDestAndConnMethodNote();
       
   205             break;
       
   206             }
       
   207 
       
   208         case EChangingConnTo:
       
   209             {
       
   210             iNotif.CancelChangingConnectionToNote();
       
   211             break;
       
   212             }
       
   213 
       
   214         case EConnViaCM:
       
   215             {
       
   216             iNotif.CancelConnectedViaConnMethodNote();            
       
   217             break;
       
   218             }
   210         case EWlanEasyWep:
   219         case EWlanEasyWep:
   211             {
   220             {
   212             iNotif.CancelEasyWepDlg();
   221             iNotif.CancelEasyWepDlg();
   213             
   222             
   214             if ( iRS )
   223             if ( iRS )
   426                 {
   435                 {
   427                 iNotif.WLANNetworkUnavailableNote( iStatus );
   436                 iNotif.WLANNetworkUnavailableNote( iStatus );
   428                 break;
   437                 break;
   429                 }
   438                 }
   430 
   439 
       
   440             case EConnViaDestCM:
       
   441                 {
       
   442                 iNotif.ConnectedViaDestAndConnMethodNote( aDestId, aConnMId,
       
   443                                                           iStatus );
       
   444                 break;
       
   445                 }
       
   446 
       
   447             case EChangingConnTo:
       
   448                 {
       
   449                 iNotif.ChangingConnectionToNote( aConnMId, iStatus );
       
   450                 break;
       
   451                 }
       
   452 
       
   453             case EConnViaCM:
       
   454                 {
       
   455                 iNotif.ConnectedViaConnMethodNote( aConnMId, iStatus );
       
   456                 break;
       
   457                 }
       
   458 
       
   459             case ENoWlanNetwsAvail:
       
   460                 {
       
   461                 iNotif.NoWLANNetworksAvailableNote( iStatus );
       
   462                 break;
       
   463                 }
       
   464 
   431             default:
   465             default:
   432                 {
   466                 {
   433                 return;
   467                 return;
   434                 }
   468                 }
   435             }
   469             }
   460         }
   494         }
   461 
   495 
   462     return iStatus.Int();  
   496     return iStatus.Int();  
   463     }
   497     }
   464 
   498 
       
   499 // ---------------------------------------------------------
       
   500 // CActiveWrapper::StartConnectingViaDiscreetPopup
       
   501 //
       
   502 // Starts the active object
       
   503 // ---------------------------------------------------------
       
   504 //
       
   505 void CActiveWrapper::StartConnectingViaDiscreetPopup( TPckgBuf< TConnUiConnectingViaDiscreetPopup>& aInfo )
       
   506     {
       
   507     if ( IsActive() == EFalse )
       
   508         {
       
   509         iIndexOfNote = EConnectingViaDiscreetPopup;
       
   510         iNotif.ConnectingViaDiscreetPopup( aInfo, iStatus );
       
   511         SetActive();
       
   512         iWait.Start();
       
   513         }
       
   514 
       
   515     }
       
   516 
       
   517 
       
   518 // ---------------------------------------------------------
       
   519 // CActiveWrapper::StartConnectionErrorDiscreetPopup
       
   520 //
       
   521 // Starts the active object
       
   522 // ---------------------------------------------------------
       
   523 //
       
   524 void CActiveWrapper::StartConnectionErrorDiscreetPopup( TPckgBuf<TInt>& aErrCode )
       
   525     {
       
   526     if ( IsActive() == EFalse )
       
   527         {
       
   528         iIndexOfNote = EConnectionErrorDiscreetPopup;
       
   529         iNotif.ConnectionErrorDiscreetPopup( aErrCode, iStatus );
       
   530         SetActive();
       
   531         iWait.Start();
       
   532         }
       
   533 
       
   534     }
       
   535 
   465 // End of File
   536 // End of File