connectionutilities/ConnectionDialogs/cconndlg/clientsrc/GenConAgentDialogServer.cpp
branchRCL_3
changeset 58 83ca720e2b9a
parent 57 05bc53fe583b
equal deleted inserted replaced
57:05bc53fe583b 58:83ca720e2b9a
    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"
    23 #include "ConnectionDialogsLogger.h"
    24 #include "ConnectionDialogsLogger.h"
    24 
    25 
    25 #include <agentdialog.h>
    26 #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
       
    30 
    27 
    31 
    28 
    32 // ---------------------------------------------------------
    29 // ---------------------------------------------------------
    33 // ThreadFunction
    30 // ThreadFunction
    34 //
    31 //
   224                                                       TBool /*aIsReconnect*/, 
   221                                                       TBool /*aIsReconnect*/, 
   225                                                       TRequestStatus& aStatus )
   222                                                       TRequestStatus& aStatus )
   226     {
   223     {
   227     CLOG_ENTERFN( "RGenConAgentDialogServer::Authenticate" );
   224     CLOG_ENTERFN( "RGenConAgentDialogServer::Authenticate" );
   228 
   225 
   229     // To get rid of compile warnings;
   226     CActiveLogin* activeLogin = NULL;
   230     aPassword = aPassword;
   227 
   231     aUsername = aUsername;
   228     TRAPD( err, activeLogin = CActiveLogin::NewL( aUsername, aPassword ) );
       
   229 
       
   230     iNotUsed() = ( TUint32 )activeLogin;
   232     
   231     
   233 
   232     if ( err != KErrNone )
   234     // temporaty variable to get the notifier started
   233         {
   235     TPckgBuf<TUint32> notUsed;
   234         TRequestStatus* pS = &aStatus;
   236 
   235         User::RequestComplete( pS, err );
   237     if ( iNotifier )
   236         }
   238         {
   237     else
   239         iNotifier->StartNotifierAndGetResponse( aStatus,
   238         {
   240                                                 KUidCConnDlgAuthentication,
   239         activeLogin->Observe( aStatus );
   241                                                 notUsed,
   240 
   242                                                 notUsed );
   241         TPckgBuf<TAuthenticationPairBuff>* authenticationPairBuff = 
       
   242                                                     activeLogin->GetBuffer();
       
   243 
       
   244         if ( iNotifier )
       
   245             {
       
   246             iNotifier->StartNotifierAndGetResponse( activeLogin->iStatus,
       
   247                                                     KUidCConnDlgAuthentication,
       
   248                                                     *authenticationPairBuff,
       
   249                                                     *authenticationPairBuff );
       
   250             }
   243         }
   251         }
   244 
   252 
   245     CLOG_LEAVEFN( "RGenConAgentDialogServer::Authenticate" );
   253     CLOG_LEAVEFN( "RGenConAgentDialogServer::Authenticate" );
   246     }
   254     }
   247 
   255 
   428 
   436 
   429     if ( iNotifier )
   437     if ( iNotifier )
   430         {
   438         {
   431         iNotifier->CancelNotifier( KUidCConnDlgAuthentication );
   439         iNotifier->CancelNotifier( KUidCConnDlgAuthentication );
   432         }
   440         }
       
   441 
       
   442     CActiveLogin* activeLogin = ( CActiveLogin* )iNotUsed();
       
   443 
       
   444     activeLogin->Cancel();
       
   445     delete activeLogin;
   433 
   446 
   434     CLOG_LEAVEFN( "RGenConAgentDialogServer::CancelAuthenticate" );
   447     CLOG_LEAVEFN( "RGenConAgentDialogServer::CancelAuthenticate" );
   435     }
   448     }
   436 
   449 
   437 
   450