37 #include <featmgr.h> |
37 #include <featmgr.h> |
38 #include <mccedtmfinterface.h> |
38 #include <mccedtmfinterface.h> |
39 #include <mpecontacthandling.h> |
39 #include <mpecontacthandling.h> |
40 #include <mpeloghandling.h> |
40 #include <mpeloghandling.h> |
41 #include <xqservicerequest.h> |
41 #include <xqservicerequest.h> |
|
42 #include <xqappmgr.h> |
42 #include "phoneservices.h" |
43 #include "phoneservices.h" |
43 |
44 |
44 // CONSTANTS |
45 // CONSTANTS |
45 const TInt KDriveProfile ( 6 ); |
46 const TInt KDriveProfile ( 6 ); |
46 const TInt KPECallTimerOff = 0; |
47 const TInt KPECallTimerOff = 0; |
1433 } |
1434 } |
1434 |
1435 |
1435 case CPEPhoneModel::EPENetworkHandling: |
1436 case CPEPhoneModel::EPENetworkHandling: |
1436 { |
1437 { |
1437 TEFLOGSTRING( KTAOBJECT, "CPEPhoneModel::StepL: 18.1" ); |
1438 TEFLOGSTRING( KTAOBJECT, "CPEPhoneModel::StepL: 18.1" ); |
1438 XQServiceRequest request("com.nokia.services.networkhandling","start()"); |
|
1439 bool res = request.send(); |
|
1440 if (!res) { |
|
1441 int error = request.latestError(); |
|
1442 TEFLOGSTRING2( |
|
1443 KTAOBJECT, |
|
1444 "CPEPhoneModel::StepL 18.2 error %d", |
|
1445 error ); |
|
1446 } |
|
1447 TEFLOGSTRING( KTAOBJECT, "CPEPhoneModel::StepL: 18.2" ); |
|
1448 continueStepping = EFalse; |
1439 continueStepping = EFalse; |
|
1440 QString service("networkhandlingstarter"); |
|
1441 QString interface("com.nokia.symbian.IStart"); |
|
1442 QString operation("start()"); |
|
1443 XQApplicationManager appManager; |
|
1444 |
|
1445 QScopedPointer<XQAiwRequest> request( |
|
1446 appManager.create(service, interface, operation, false)); |
|
1447 if (request == NULL) { |
|
1448 TEFLOGSTRING(KTAOBJECT, |
|
1449 "CPEPhoneModel::StepL 18.2 error, service not found"); |
|
1450 break; |
|
1451 } |
|
1452 XQRequestInfo info; |
|
1453 info.setForeground(false); |
|
1454 request->setInfo(info); |
|
1455 request->setSynchronous(false); |
|
1456 if (!request->send()) { |
|
1457 int error = request->lastError(); |
|
1458 TEFLOGSTRING2(KTAOBJECT, |
|
1459 "CPEPhoneModel::StepL 18.3 error %d", error); |
|
1460 break; |
|
1461 } |
|
1462 TEFLOGSTRING(KTAOBJECT, "CPEPhoneModel::StepL: 18.4"); |
1449 break; |
1463 break; |
1450 } |
1464 } |
1451 |
1465 |
1452 default: |
1466 default: |
1453 { |
1467 { |