telephonyprotocols/pdplayer/src/PDPDeftSCPR.cpp
branchRCL_3
changeset 65 630d2f34d719
parent 27 4284d6390a82
child 66 07a122eea281
equal deleted inserted replaced
61:17af172ffa5f 65:630d2f34d719
    17 
    17 
    18 /**
    18 /**
    19  @file
    19  @file
    20  @internalComponent
    20  @internalComponent
    21 */
    21 */
       
    22 
       
    23 #include "OstTraceDefinitions.h"
       
    24 #ifdef OST_TRACE_COMPILER_IN_USE
       
    25 #include "PDPDeftSCPRTraces.h"
       
    26 #endif
    22 
    27 
    23 #include <comms-infras/corescpractivities.h>
    28 #include <comms-infras/corescpractivities.h>
    24 #include "PDPDeftSCPR.h"
    29 #include "PDPDeftSCPR.h"
    25 #include "PDPSCPRStates.h"
    30 #include "PDPSCPRStates.h"
    26 #include "PDPSCPRFactory.h"
    31 #include "PDPSCPRFactory.h"
    27 #include <comms-infras/ss_log.h>
    32 #include <comms-infras/ss_log.h>
    28 #include <comms-infras/commsdebugutility.h>
    33 #include <comms-infras/commsdebugutility.h>
    29 #include <elements/nm_signatures.h>
    34 #include <elements/nm_signatures.h>
    30 
    35 
    31 #if defined(__CFLOG_ACTIVE) || defined(SYMBIAN_TRACE_ENABLE)
    36 #if defined(SYMBIAN_TRACE_ENABLE)
    32 #define KPDPSCprTag KESockSubConnectionTag
    37 #define KPDPSCprTag KESockSubConnectionTag
    33 _LIT8(KPDPSCprSubTag, "pdpscpr");
    38 _LIT8(KPDPSCprSubTag, "pdpscpr");
    34 #endif
    39 #endif
    35 
    40 
    36 using namespace Messages;
    41 using namespace Messages;
   275     RPacketContext::TProtocolConfigOptionV2* configOption = ProtocolConfigOptionL();
   280     RPacketContext::TProtocolConfigOptionV2* configOption = ProtocolConfigOptionL();
   276 
   281 
   277     iUsername.Copy(configOption->iAuthInfo.iUsername);
   282     iUsername.Copy(configOption->iAuthInfo.iUsername);
   278     iPassword.Copy(configOption->iAuthInfo.iPassword);
   283     iPassword.Copy(configOption->iAuthInfo.iPassword);
   279 
   284 
   280     __CFLOG_VAR((KPDPSCprTag, KPDPSCprSubTag, _L8("CPDPSubConnectionProvider [this=%08x]::AuthenticationCompleteL() KCDTIdWCDMAIfAuthName [%S] "), this, &iUsername));
   285     OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPDEFAULTSUBCONNECTIONPROVIDER_AUTHENTICATE_1, "CPDPSubConnectionProvider [this=%08x]::AuthenticationCompleteL() KCDTIdWCDMAIfAuthName [%S] ", (TUint)this, iUsername);
   281     __CFLOG_VAR((KPDPSCprTag, KPDPSCprSubTag, _L8("CPDPSubConnectionProvider [this=%08x]::AuthenticationCompleteL() KCDTIdWCDMAIfAuthName [%S] "), this, &iPassword));
   286     OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPDEFAULTSUBCONNECTIONPROVIDER_AUTHENTICATE_2, "CPDPSubConnectionProvider [this=%08x]::AuthenticationCompleteL() KCDTIdWCDMAIfAuthName [%S] ", (TUint)this, iPassword);
   282     
   287     
   283     iAuthDialog = CAuthenticationDialog::NewL();
   288     iAuthDialog = CAuthenticationDialog::NewL();
   284     iAuthDialog->Authenticate(*this, iUsername, iPassword);
   289     iAuthDialog->Authenticate(*this, iUsername, iPassword);
   285     }
   290     }
   286 
   291 
   291         {
   296         {
   292         RPacketContext::TProtocolConfigOptionV2* configOption = ProtocolConfigOptionL();
   297         RPacketContext::TProtocolConfigOptionV2* configOption = ProtocolConfigOptionL();
   293 
   298 
   294         configOption->iAuthInfo.iUsername.Copy(iUsername);
   299         configOption->iAuthInfo.iUsername.Copy(iUsername);
   295         configOption->iAuthInfo.iPassword.Copy(iPassword);
   300         configOption->iAuthInfo.iPassword.Copy(iPassword);
   296 
   301        
   297         __CFLOG_VAR((KPDPSCprTag, KPDPSCprSubTag, _L8("CPDPSubConnectionProvider [this=%08x]::AuthenticationCompleteL() KCDTIdWCDMAIfAuthName [%S] "), this, &configOption->iAuthInfo.iUsername));
   302         OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPDEFAULTSUBCONNECTIONPROVIDER_AUTHENTICATIONCOMPLETE_1, "CPDPSubConnectionProvider [this=%08x]::AuthenticationCompleteL() KCDTIdWCDMAIfAuthName [%s] ", (TUint)this, configOption->iAuthInfo.iUsername);
   298         __CFLOG_VAR((KPDPSCprTag, KPDPSCprSubTag, _L8("CPDPSubConnectionProvider [this=%08x]::AuthenticationCompleteL() KCDTIdWCDMAIfAuthName [%S] "), this, &configOption->iAuthInfo.iPassword));
   303         OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPDEFAULTSUBCONNECTIONPROVIDER_AUTHENTICATIONCOMPLETE_2, "CPDPSubConnectionProvider [this=%08x]::AuthenticationCompleteL() KCDTIdWCDMAIfAuthName [%s] ", (TUint)this, configOption->iAuthInfo.iPassword);
   299         }
   304         }
   300 
   305 
   301     //Send AuthenticateComplete message
   306     //Send AuthenticateComplete message
   302     RClientInterface::OpenPostMessageClose(Id(), Id(),
   307     RClientInterface::OpenPostMessageClose(Id(), Id(),
   303             TPDPMessages::TAuthenticateComplete(aError).CRef());
   308             TPDPMessages::TAuthenticateComplete(aError).CRef());