connectionutilities/ConnectionDialogs/cconndlg/clientsrc/GenConAgentDialogServer.cpp
changeset 20 9c97ad6591ae
parent 0 5a93021fdf25
child 58 83ca720e2b9a
equal deleted inserted replaced
18:fcbbe021d614 20:9c97ad6591ae
    18 
    18 
    19 
    19 
    20 // INCLUDE FILES
    20 // INCLUDE FILES
    21 #include "GenConAgentDialogServer.h"
    21 #include "GenConAgentDialogServer.h"
    22 #include "ConnectionDialogsUidDefs.h"
    22 #include "ConnectionDialogsUidDefs.h"
    23 #include "ActiveLogin.h"
       
    24 #include "ConnectionDialogsLogger.h"
    23 #include "ConnectionDialogsLogger.h"
    25 
    24 
    26 #include <agentdialog.h>
    25 #include <agentdialog.h>
       
    26 
       
    27 // NOTE that the functionality this file is DEPRECATED
       
    28 // None on the methods have UI functionality, the plugins complete the requests
       
    29 // immediately when they are started
    27 
    30 
    28 
    31 
    29 // ---------------------------------------------------------
    32 // ---------------------------------------------------------
    30 // ThreadFunction
    33 // ThreadFunction
    31 //
    34 //
   221                                                       TBool /*aIsReconnect*/, 
   224                                                       TBool /*aIsReconnect*/, 
   222                                                       TRequestStatus& aStatus )
   225                                                       TRequestStatus& aStatus )
   223     {
   226     {
   224     CLOG_ENTERFN( "RGenConAgentDialogServer::Authenticate" );
   227     CLOG_ENTERFN( "RGenConAgentDialogServer::Authenticate" );
   225 
   228 
   226     CActiveLogin* activeLogin = NULL;
   229     // To get rid of compile warnings;
   227 
   230     aPassword = aPassword;
   228     TRAPD( err, activeLogin = CActiveLogin::NewL( aUsername, aPassword ) );
   231     aUsername = aUsername;
   229 
       
   230     iNotUsed() = ( TUint32 )activeLogin;
       
   231     
   232     
   232     if ( err != KErrNone )
   233 
   233         {
   234     // temporaty variable to get the notifier started
   234         TRequestStatus* pS = &aStatus;
   235     TPckgBuf<TUint32> notUsed;
   235         User::RequestComplete( pS, err );
   236 
   236         }
   237     if ( iNotifier )
   237     else
   238         {
   238         {
   239         iNotifier->StartNotifierAndGetResponse( aStatus,
   239         activeLogin->Observe( aStatus );
   240                                                 KUidCConnDlgAuthentication,
   240 
   241                                                 notUsed,
   241         TPckgBuf<TAuthenticationPairBuff>* authenticationPairBuff = 
   242                                                 notUsed );
   242                                                     activeLogin->GetBuffer();
       
   243 
       
   244         if ( iNotifier )
       
   245             {
       
   246             iNotifier->StartNotifierAndGetResponse( activeLogin->iStatus,
       
   247                                                     KUidCConnDlgAuthentication,
       
   248                                                     *authenticationPairBuff,
       
   249                                                     *authenticationPairBuff );
       
   250             }
       
   251         }
   243         }
   252 
   244 
   253     CLOG_LEAVEFN( "RGenConAgentDialogServer::Authenticate" );
   245     CLOG_LEAVEFN( "RGenConAgentDialogServer::Authenticate" );
   254     }
   246     }
   255 
   247 
   436 
   428 
   437     if ( iNotifier )
   429     if ( iNotifier )
   438         {
   430         {
   439         iNotifier->CancelNotifier( KUidCConnDlgAuthentication );
   431         iNotifier->CancelNotifier( KUidCConnDlgAuthentication );
   440         }
   432         }
   441 
       
   442     CActiveLogin* activeLogin = ( CActiveLogin* )iNotUsed();
       
   443 
       
   444     activeLogin->Cancel();
       
   445     delete activeLogin;
       
   446 
   433 
   447     CLOG_LEAVEFN( "RGenConAgentDialogServer::CancelAuthenticate" );
   434     CLOG_LEAVEFN( "RGenConAgentDialogServer::CancelAuthenticate" );
   448     }
   435     }
   449 
   436 
   450 
   437