equal
deleted
inserted
replaced
20 #include "cpeclientinformation.h" |
20 #include "cpeclientinformation.h" |
21 #include "cpeengineinfoimpl.h" |
21 #include "cpeengineinfoimpl.h" |
22 #include <pepanic.pan> |
22 #include <pepanic.pan> |
23 #include <telinternalpskeys.h> |
23 #include <telinternalpskeys.h> |
24 #include <cphcltdialdata.h> |
24 #include <cphcltdialdata.h> |
25 #include <PhCltTypes.h> |
25 #include <phclttypes.h> |
26 #include <talogger.h> |
26 #include <talogger.h> |
27 |
27 |
28 // ================= MEMBER FUNCTIONS ========================================== |
28 // ================= MEMBER FUNCTIONS ========================================== |
29 |
29 |
30 // ----------------------------------------------------------------------------- |
30 // ----------------------------------------------------------------------------- |
33 // might leave. |
33 // might leave. |
34 // ----------------------------------------------------------------------------- |
34 // ----------------------------------------------------------------------------- |
35 // |
35 // |
36 CPEEngineInfoImpl::CPEEngineInfoImpl() |
36 CPEEngineInfoImpl::CPEEngineInfoImpl() |
37 : iCurrentCalls( KPEMaximumNumberOfCalls ) |
37 : iCurrentCalls( KPEMaximumNumberOfCalls ) |
|
38 // <-- QT PHONE START --> |
|
39 ,iContactId( KErrNotFound ) |
|
40 // <-- QT PHONE END --> |
|
41 |
38 { |
42 { |
39 iCallCommandInfo.iPhoneNumber = KNullDesC; |
43 iCallCommandInfo.iPhoneNumber = KNullDesC; |
40 iCallCommandInfo.iCallId = 0; |
44 iCallCommandInfo.iCallId = 0; |
41 iCallCommandInfo.iKeyCode = 0; |
45 iCallCommandInfo.iKeyCode = 0; |
42 iCallCommandInfo.iAudioVolume = KPENumberInitValue; |
46 iCallCommandInfo.iAudioVolume = KPENumberInitValue; |
97 iBasicInfo.iSimState = EPESimStatusUninitialized; |
101 iBasicInfo.iSimState = EPESimStatusUninitialized; |
98 iBasicInfo.iSecureSpecified = ETrue; |
102 iBasicInfo.iSecureSpecified = ETrue; |
99 iBasicInfo.iDataPortName = KNullDesC; |
103 iBasicInfo.iDataPortName = KNullDesC; |
100 iBasicInfo.iSwitchToOngoing = EFalse; |
104 iBasicInfo.iSwitchToOngoing = EFalse; |
101 iConferenceCallInfo.iConferenceCallState = EPEStateConferenceIdle; |
105 iConferenceCallInfo.iConferenceCallState = EPEStateConferenceIdle; |
|
106 |
|
107 // <-- QT PHONE START --> |
|
108 //TODO remove after profile information is available |
|
109 iBasicInfo.iRingingVolume = 10; |
|
110 // <-- QT PHONE END --> |
102 } |
111 } |
103 |
112 |
104 // ----------------------------------------------------------------------------- |
113 // ----------------------------------------------------------------------------- |
105 // CPEEngineInfoImpl::NewL |
114 // CPEEngineInfoImpl::NewL |
106 // Two-phased constructor. |
115 // Two-phased constructor. |
658 // CPEEngineInfoImpl::CallOriginCommand |
667 // CPEEngineInfoImpl::CallOriginCommand |
659 // Gets call origin for next call attempt |
668 // Gets call origin for next call attempt |
660 // ----------------------------------------------------------------------------- |
669 // ----------------------------------------------------------------------------- |
661 // |
670 // |
662 const TPECallOrigin& CPEEngineInfoImpl::CallOriginCommand() const |
671 const TPECallOrigin& CPEEngineInfoImpl::CallOriginCommand() const |
663 { |
672 { |
664 return iCallCommandInfo.iCallOrigin; |
673 return iCallCommandInfo.iCallOrigin; |
665 } |
674 } |
666 |
675 |
667 // CPEEngineInfoImpl::ProfileId |
676 // CPEEngineInfoImpl::ProfileId |
668 // Gets the profile id from the TPEBasicInfo structure. |
677 // Gets the profile id from the TPEBasicInfo structure. |
669 // ----------------------------------------------------------------------------- |
678 // ----------------------------------------------------------------------------- |
670 // |
679 // |
671 const TInt& CPEEngineInfoImpl::ProfileId() const |
680 const TInt& CPEEngineInfoImpl::ProfileId() const |
1273 void CPEEngineInfoImpl::SetCallDuration( |
1282 void CPEEngineInfoImpl::SetCallDuration( |
1274 const TInt& aCallDuration ) |
1283 const TInt& aCallDuration ) |
1275 { |
1284 { |
1276 iBasicInfo.iLastCallDuration = aCallDuration; |
1285 iBasicInfo.iLastCallDuration = aCallDuration; |
1277 } |
1286 } |
1278 |
1287 |
1279 // ----------------------------------------------------------------------------- |
1288 // ----------------------------------------------------------------------------- |
1280 // CPEEngineInfoImpl::SetDtmfPostFix |
1289 // CPEEngineInfoImpl::SetDtmfPostFix |
1281 // Sets dtmf postfix value to TPEBasicInfo-structure |
1290 // Sets dtmf postfix value to TPEBasicInfo-structure |
1282 // ----------------------------------------------------------------------------- |
1291 // ----------------------------------------------------------------------------- |
1283 // |
1292 // |
1400 // CPEEngineInfoImpl::SetCallOriginCommand |
1409 // CPEEngineInfoImpl::SetCallOriginCommand |
1401 // Sets call origin for the next call attempt |
1410 // Sets call origin for the next call attempt |
1402 // ----------------------------------------------------------------------------- |
1411 // ----------------------------------------------------------------------------- |
1403 // |
1412 // |
1404 void CPEEngineInfoImpl::SetCallOriginCommand( const TPECallOrigin& aOrigin ) |
1413 void CPEEngineInfoImpl::SetCallOriginCommand( const TPECallOrigin& aOrigin ) |
1405 { |
1414 { |
1406 iCallCommandInfo.iCallOrigin = aOrigin; |
1415 iCallCommandInfo.iCallOrigin = aOrigin; |
1407 } |
1416 } |
1408 |
1417 |
1409 // ----------------------------------------------------------------------------- |
1418 // ----------------------------------------------------------------------------- |
1410 // CPEEngineInfoImpl::SetProfileId |
1419 // CPEEngineInfoImpl::SetProfileId |
1411 // Sets profile id to TPEBasicInfo-structure |
1420 // Sets profile id to TPEBasicInfo-structure |
1412 // (other items were commented in a header). |
1421 // (other items were commented in a header). |
2544 // ----------------------------------------------------------------------------- |
2553 // ----------------------------------------------------------------------------- |
2545 // CPEEngineInfoImpl::SetRemoteColpNumber |
2554 // CPEEngineInfoImpl::SetRemoteColpNumber |
2546 // ----------------------------------------------------------------------------- |
2555 // ----------------------------------------------------------------------------- |
2547 // |
2556 // |
2548 void CPEEngineInfoImpl::SetRemoteColpNumber( |
2557 void CPEEngineInfoImpl::SetRemoteColpNumber( |
2549 const TPEPhoneNumber& aColpNumber, |
2558 TPEPhoneNumber& aColpNumber, |
2550 const TInt aCallId ) |
2559 const TInt aCallId ) |
2551 { |
2560 { |
2552 return ( *iRemoteInfo )[ aCallId ]->SetColpNumber( aColpNumber ); |
2561 return ( *iRemoteInfo )[ aCallId ]->SetColpNumber( aColpNumber ); |
2553 } |
2562 } |
2554 |
2563 |
2613 break; |
2622 break; |
2614 } |
2623 } |
2615 } |
2624 } |
2616 return stateExists; |
2625 return stateExists; |
2617 } |
2626 } |
|
2627 // <-- QT PHONE START --> |
|
2628 // ----------------------------------------------------------------------------- |
|
2629 // CPEEngineInfoImpl::SetContactId |
|
2630 // ----------------------------------------------------------------------------- |
|
2631 // |
|
2632 void CPEEngineInfoImpl::SetContactId2( const TInt aContactId ) |
|
2633 { |
|
2634 TEFLOGSTRING2( KTAINT, |
|
2635 "PE CPEEngineInfo::SetContactId: aContactId: %d", aContactId ); |
|
2636 iContactId = aContactId; |
|
2637 } |
|
2638 |
|
2639 // ----------------------------------------------------------------------------- |
|
2640 // CPEEngineInfoImpl::ContactId |
|
2641 // ----------------------------------------------------------------------------- |
|
2642 // |
|
2643 TInt CPEEngineInfoImpl::ContactId2 () const |
|
2644 { |
|
2645 TEFLOGSTRING2( KTAINT, "ContactId: %d", iContactId ); |
|
2646 return iContactId; |
|
2647 } |
|
2648 // <-- QT PHONE END --> |
2618 |
2649 |
2619 // End of File |
2650 // End of File |