equal
deleted
inserted
replaced
54 node.RequestPermissionToSendStarted() ) |
54 node.RequestPermissionToSendStarted() ) |
55 { |
55 { |
56 S60MCPRLOGSTRING2("S60MCPR<%x>::THandleMPMStatusChange::DoL() calling IAPConnectionStartedL IAP %d",(TInt*)&iContext.Node(),iapid) |
56 S60MCPRLOGSTRING2("S60MCPR<%x>::THandleMPMStatusChange::DoL() calling IAPConnectionStartedL IAP %d",(TInt*)&iContext.Node(),iapid) |
57 // TODO use progress notification KLinkLayerOpen once Symbian provides them. |
57 // TODO use progress notification KLinkLayerOpen once Symbian provides them. |
58 node.Policy()->IAPConnectionStartedL( iapid ); // codescanner::leave |
58 node.Policy()->IAPConnectionStartedL( iapid ); // codescanner::leave |
59 |
|
60 /** HACK ALERT |
|
61 * |
|
62 * Due to regression in MOBILITY the EStartedFlag for serviceprovider is set here! |
|
63 * TODO Remove this hack whenever possible!!! |
|
64 */ |
|
65 node.ServiceProvider()->SetFlags( TCFClientType::EStarted ); |
|
66 } |
59 } |
67 else if ( msg.iValue == TCFControlProvider::TDataClientStatusChange::EStopped && |
60 else if ( msg.iValue == TCFControlProvider::TDataClientStatusChange::EStopped && |
68 node.RequestPermissionToSendStopped() ) |
61 node.RequestPermissionToSendStopped() ) |
69 { |
62 { |
70 S60MCPRLOGSTRING2("S60MCPR<%x>::THandleMPMStatusChange::DoL() calling IAPConnectionStoppedL IAP %d",(TInt*)&iContext.Node(),iapid) |
63 S60MCPRLOGSTRING2("S60MCPR<%x>::THandleMPMStatusChange::DoL() calling IAPConnectionStoppedL IAP %d",(TInt*)&iContext.Node(),iapid) |
349 msg = message_cast<ESock::TMCprGetConnectionSetting>(&iContext.iMessage); |
342 msg = message_cast<ESock::TMCprGetConnectionSetting>(&iContext.iMessage); |
350 |
343 |
351 // Get MCPR |
344 // Get MCPR |
352 CS60MetaConnectionProvider& node = (CS60MetaConnectionProvider&)iContext.Node(); |
345 CS60MetaConnectionProvider& node = (CS60MetaConnectionProvider&)iContext.Node(); |
353 |
346 |
|
347 _LIT( KIapProxyServiceSetting, "IAP\\IAPService" ); |
|
348 TBuf<KCommsDbSvrMaxColumnNameLength*2 +1> field; |
|
349 if (msg) |
|
350 { |
|
351 TRAP_IGNORE(msg->iMessage.ReadL(0, field)); |
|
352 } |
|
353 |
|
354 S60MCPRLOGSTRING2("S60MCPR<%x>::TAwaitingServiceIdRequest::Accept() ServiceId = %x", |
|
355 (TInt*)&iContext.Node(), node.PolicyPrefs().ServiceId()) |
|
356 |
354 // Only EIntSetting is supported |
357 // Only EIntSetting is supported |
355 // |
358 // |
356 if ( ( TMCprGetConnectionSetting::TConnectionSettingType)msg->iSettingType == |
359 if ( ( TMCprGetConnectionSetting::TConnectionSettingType)msg->iSettingType == |
357 TMCprGetConnectionSetting::EIntSetting |
360 TMCprGetConnectionSetting::EIntSetting |
358 && node.PolicyPrefs().ServiceId() != 0 ) |
361 && node.PolicyPrefs().ServiceId() != 0 |
|
362 && field.Compare( KIapProxyServiceSetting ) == 0 ) |
359 { |
363 { |
360 S60MCPRLOGSTRING1("S60MCPR<%x>::TAwaitingServiceIdRequest::Accept() TMCprGetConnectionSetting EIntSetting", |
364 S60MCPRLOGSTRING1("S60MCPR<%x>::TAwaitingServiceIdRequest::Accept() TMCprGetConnectionSetting EIntSetting", |
361 (TInt*)&iContext.Node()) |
365 (TInt*)&iContext.Node()) |
362 return ETrue; |
366 return ETrue; |
363 } |
367 } |