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 |
|
27 |
22 |
28 #include <comms-infras/corescpractivities.h> |
23 #include <comms-infras/corescpractivities.h> |
29 #include "PDPDeftSCPR.h" |
24 #include "PDPDeftSCPR.h" |
30 #include "PDPSCPRStates.h" |
25 #include "PDPSCPRStates.h" |
31 #include "PDPSCPRFactory.h" |
26 #include "PDPSCPRFactory.h" |
32 #include <comms-infras/ss_log.h> |
27 #include <comms-infras/ss_log.h> |
33 #include <comms-infras/commsdebugutility.h> |
28 #include <comms-infras/commsdebugutility.h> |
34 #include <elements/nm_signatures.h> |
29 #include <elements/nm_signatures.h> |
35 |
30 |
36 #if defined(SYMBIAN_TRACE_ENABLE) |
31 #if defined(__CFLOG_ACTIVE) || defined(SYMBIAN_TRACE_ENABLE) |
37 #define KPDPSCprTag KESockSubConnectionTag |
32 #define KPDPSCprTag KESockSubConnectionTag |
38 _LIT8(KPDPSCprSubTag, "pdpscpr"); |
33 _LIT8(KPDPSCprSubTag, "pdpscpr"); |
39 #endif |
34 #endif |
40 |
35 |
41 using namespace Messages; |
36 using namespace Messages; |
280 RPacketContext::TProtocolConfigOptionV2* configOption = ProtocolConfigOptionL(); |
275 RPacketContext::TProtocolConfigOptionV2* configOption = ProtocolConfigOptionL(); |
281 |
276 |
282 iUsername.Copy(configOption->iAuthInfo.iUsername); |
277 iUsername.Copy(configOption->iAuthInfo.iUsername); |
283 iPassword.Copy(configOption->iAuthInfo.iPassword); |
278 iPassword.Copy(configOption->iAuthInfo.iPassword); |
284 |
279 |
285 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPDEFAULTSUBCONNECTIONPROVIDER_AUTHENTICATE_1, "CPDPSubConnectionProvider [this=%08x]::AuthenticationCompleteL() KCDTIdWCDMAIfAuthName [%S] ", (TUint)this, iUsername); |
280 __CFLOG_VAR((KPDPSCprTag, KPDPSCprSubTag, _L8("CPDPSubConnectionProvider [this=%08x]::AuthenticationCompleteL() KCDTIdWCDMAIfAuthName [%S] "), this, &iUsername)); |
286 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPDEFAULTSUBCONNECTIONPROVIDER_AUTHENTICATE_2, "CPDPSubConnectionProvider [this=%08x]::AuthenticationCompleteL() KCDTIdWCDMAIfAuthName [%S] ", (TUint)this, iPassword); |
281 __CFLOG_VAR((KPDPSCprTag, KPDPSCprSubTag, _L8("CPDPSubConnectionProvider [this=%08x]::AuthenticationCompleteL() KCDTIdWCDMAIfAuthName [%S] "), this, &iPassword)); |
287 |
282 |
288 iAuthDialog = CAuthenticationDialog::NewL(); |
283 iAuthDialog = CAuthenticationDialog::NewL(); |
289 iAuthDialog->Authenticate(*this, iUsername, iPassword); |
284 iAuthDialog->Authenticate(*this, iUsername, iPassword); |
290 } |
285 } |
291 |
286 |
296 { |
291 { |
297 RPacketContext::TProtocolConfigOptionV2* configOption = ProtocolConfigOptionL(); |
292 RPacketContext::TProtocolConfigOptionV2* configOption = ProtocolConfigOptionL(); |
298 |
293 |
299 configOption->iAuthInfo.iUsername.Copy(iUsername); |
294 configOption->iAuthInfo.iUsername.Copy(iUsername); |
300 configOption->iAuthInfo.iPassword.Copy(iPassword); |
295 configOption->iAuthInfo.iPassword.Copy(iPassword); |
301 |
296 |
302 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPDEFAULTSUBCONNECTIONPROVIDER_AUTHENTICATIONCOMPLETE_1, "CPDPSubConnectionProvider [this=%08x]::AuthenticationCompleteL() KCDTIdWCDMAIfAuthName [%s] ", (TUint)this, configOption->iAuthInfo.iUsername); |
297 __CFLOG_VAR((KPDPSCprTag, KPDPSCprSubTag, _L8("CPDPSubConnectionProvider [this=%08x]::AuthenticationCompleteL() KCDTIdWCDMAIfAuthName [%S] "), this, &configOption->iAuthInfo.iUsername)); |
303 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPDEFAULTSUBCONNECTIONPROVIDER_AUTHENTICATIONCOMPLETE_2, "CPDPSubConnectionProvider [this=%08x]::AuthenticationCompleteL() KCDTIdWCDMAIfAuthName [%s] ", (TUint)this, configOption->iAuthInfo.iPassword); |
298 __CFLOG_VAR((KPDPSCprTag, KPDPSCprSubTag, _L8("CPDPSubConnectionProvider [this=%08x]::AuthenticationCompleteL() KCDTIdWCDMAIfAuthName [%S] "), this, &configOption->iAuthInfo.iPassword)); |
304 } |
299 } |
305 |
300 |
306 //Send AuthenticateComplete message |
301 //Send AuthenticateComplete message |
307 RClientInterface::OpenPostMessageClose(Id(), Id(), |
302 RClientInterface::OpenPostMessageClose(Id(), Id(), |
308 TPDPMessages::TAuthenticateComplete(aError).CRef()); |
303 TPDPMessages::TAuthenticateComplete(aError).CRef()); |