connectionutilities/ConnectionDialogs/ConnectionUiUtilities/src/ActiveWrapper.cpp
branchRCL_3
changeset 24 05bc53fe583b
parent 0 5a93021fdf25
child 25 83ca720e2b9a
equal deleted inserted replaced
23:fc7b30ed2058 24:05bc53fe583b
    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   iIndexOfNote( aIndexOfNote )
    74   iSSID( NULL ),
       
    75   iConnectionMode( NULL ),
       
    76   iSecurityMode( NULL ),
       
    77   iExtSecurityMode( NULL ),
       
    78   iProtectedSetupSupported( NULL ),
       
    79   iRS( NULL ),
       
    80   iIndexOfNote( aIndexOfNote ),
       
    81   iKey( NULL ),
       
    82   iHex( NULL )
    75     {
    83     {
    76     }
    84     }
    77 
    85 
    78 
    86 
    79 // ---------------------------------------------------------
    87 // ---------------------------------------------------------
   197             {
   205             {
   198             iNotif.CancelOffLineWlanNote();
   206             iNotif.CancelOffLineWlanNote();
   199             break;
   207             break;
   200             }
   208             }
   201 
   209 
   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             }
       
   219         case EWlanEasyWep:
   210         case EWlanEasyWep:
   220             {
   211             {
   221             iNotif.CancelEasyWepDlg();
   212             iNotif.CancelEasyWepDlg();
   222             
   213             
   223             if ( iRS )
   214             if ( iRS )
   435                 {
   426                 {
   436                 iNotif.WLANNetworkUnavailableNote( iStatus );
   427                 iNotif.WLANNetworkUnavailableNote( iStatus );
   437                 break;
   428                 break;
   438                 }
   429                 }
   439 
   430 
   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 
       
   465             default:
   431             default:
   466                 {
   432                 {
   467                 return;
   433                 return;
   468                 }
   434                 }
   469             }
   435             }
   494         }
   460         }
   495 
   461 
   496     return iStatus.Int();  
   462     return iStatus.Int();  
   497     }
   463     }
   498 
   464 
   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 
       
   536 // End of File
   465 // End of File