55 iBasicInfo.iDtmfString = KNullDesC; |
55 iBasicInfo.iDtmfString = KNullDesC; |
56 iBasicInfo.iErrorInfo.iErrorCode = ECCPErrorNone; |
56 iBasicInfo.iErrorInfo.iErrorCode = ECCPErrorNone; |
57 iBasicInfo.iErrorInfo.iCallId = KPECallIdNotUsed; |
57 iBasicInfo.iErrorInfo.iCallId = KPECallIdNotUsed; |
58 iBasicInfo.iProfileId = ECCPErrorNotFound; |
58 iBasicInfo.iProfileId = ECCPErrorNotFound; |
59 iBasicInfo.iProfileName = KNullDesC; |
59 iBasicInfo.iProfileName = KNullDesC; |
60 iBasicInfo.iPhoneIdentityParameters.iManufacturer = KNullDesC; |
|
61 iBasicInfo.iPhoneIdentityParameters.iModel = KNullDesC; |
|
62 iBasicInfo.iPhoneIdentityParameters.iRevision = KNullDesC; |
|
63 iBasicInfo.iPhoneIdentityParameters.iSerialNumber = KNullDesC; |
|
64 iBasicInfo.iLastCallDuration = KPENumberInitValue; |
60 iBasicInfo.iLastCallDuration = KPENumberInitValue; |
65 iBasicInfo.iVMBXNumbers.iVMBXL1 = KNullDesC; |
61 iBasicInfo.iVMBXNumbers.iVMBXL1 = KNullDesC; |
66 iBasicInfo.iVMBXNumbers.iVMBXL2 = KNullDesC; |
62 iBasicInfo.iVMBXNumbers.iVMBXL2 = KNullDesC; |
67 iBasicInfo.iRingingType = EProfileRingingTypeRinging; |
63 iBasicInfo.iRingingType = EProfileRingingTypeRinging; |
68 iBasicInfo.iTextToSpeech = EFalse; |
64 iBasicInfo.iTextToSpeech = EFalse; |
69 iBasicInfo.iPhoneNumberIsServiceCode = EFalse; |
65 iBasicInfo.iPhoneNumberIsServiceCode = EFalse; |
70 iBasicInfo.iTwoDigitSupportStatus = EFalse; |
66 iBasicInfo.iTwoDigitSupportStatus = EFalse; |
71 iBasicInfo.iLifeTimeData.iHours = 0; |
|
72 iBasicInfo.iLifeTimeData.iMinutes = 0; |
|
73 |
67 |
74 iBasicInfo.iNetworkRegistrationStatus = ENWStatusRegistrationUnknown; |
68 iBasicInfo.iNetworkRegistrationStatus = ENWStatusRegistrationUnknown; |
75 |
69 |
76 iCallCommandInfo.iIdRestrict = RMobileCall::EIdRestrictDefault; |
70 iCallCommandInfo.iIdRestrict = RMobileCall::EIdRestrictDefault; |
77 iCallCommandInfo.iEmergencyNumber = KNullDesC; |
71 iCallCommandInfo.iEmergencyNumber = KNullDesC; |
98 iBasicInfo.iSimState = EPESimStatusUninitialized; |
92 iBasicInfo.iSimState = EPESimStatusUninitialized; |
99 iBasicInfo.iSecureSpecified = ETrue; |
93 iBasicInfo.iSecureSpecified = ETrue; |
100 iBasicInfo.iDataPortName = KNullDesC; |
94 iBasicInfo.iDataPortName = KNullDesC; |
101 iBasicInfo.iSwitchToOngoing = EFalse; |
95 iBasicInfo.iSwitchToOngoing = EFalse; |
102 iConferenceCallInfo.iConferenceCallState = EPEStateConferenceIdle; |
96 iConferenceCallInfo.iConferenceCallState = EPEStateConferenceIdle; |
103 |
97 iBasicInfo.iOutgoingBarringActivated = EFalse; |
104 //TODO remove after profile information is available |
98 //TODO remove after profile information is available |
105 iBasicInfo.iRingingVolume = 10; |
99 iBasicInfo.iRingingVolume = 10; |
106 } |
100 } |
107 |
101 |
108 // ----------------------------------------------------------------------------- |
102 // ----------------------------------------------------------------------------- |
566 { |
560 { |
567 return iBasicInfo.iKeypadVolume; |
561 return iBasicInfo.iKeypadVolume; |
568 } |
562 } |
569 |
563 |
570 // ----------------------------------------------------------------------------- |
564 // ----------------------------------------------------------------------------- |
571 // CPEEngineInfoImpl::LifeTimerData |
|
572 // Gets lifetimerdata from the TPEBasicInfo structure. |
|
573 // (other items were commented in a header). |
|
574 // ----------------------------------------------------------------------------- |
|
575 // |
|
576 const TPELifeTimeData& CPEEngineInfoImpl::LifeTimerData() const |
|
577 { |
|
578 return iBasicInfo.iLifeTimeData; |
|
579 } |
|
580 |
|
581 // ----------------------------------------------------------------------------- |
|
582 // CPEEngineInfoImpl::LoggingIndicator |
565 // CPEEngineInfoImpl::LoggingIndicator |
583 // Get logging indicator from TPECallInfo. |
566 // Get logging indicator from TPECallInfo. |
584 // (other items were commented in a header). |
567 // (other items were commented in a header). |
585 // ----------------------------------------------------------------------------- |
568 // ----------------------------------------------------------------------------- |
586 // |
569 // |
624 // ----------------------------------------------------------------------------- |
607 // ----------------------------------------------------------------------------- |
625 // |
608 // |
626 const TBool& CPEEngineInfoImpl::PersonalToneStatus() const |
609 const TBool& CPEEngineInfoImpl::PersonalToneStatus() const |
627 { |
610 { |
628 return iBasicInfo.iPersonalToneStatus; |
611 return iBasicInfo.iPersonalToneStatus; |
629 } |
|
630 |
|
631 // ----------------------------------------------------------------------------- |
|
632 // CPEEngineInfoImpl::PhoneIdentityParameters |
|
633 // Gets the phone identity parameters from the TPEBasicInfo structure |
|
634 // ----------------------------------------------------------------------------- |
|
635 // |
|
636 const TPEPhoneIdentityParameters& CPEEngineInfoImpl::PhoneIdentityParameters() const |
|
637 { |
|
638 return iBasicInfo.iPhoneIdentityParameters; |
|
639 } |
612 } |
640 |
613 |
641 // ----------------------------------------------------------------------------- |
614 // ----------------------------------------------------------------------------- |
642 // CPEEngineInfoImpl::PhoneNumber |
615 // CPEEngineInfoImpl::PhoneNumber |
643 // Return the phone number from the TPECallCommandInfo structure. |
616 // Return the phone number from the TPECallCommandInfo structure. |
1338 { |
1311 { |
1339 iBasicInfo.iKeypadVolume = aKeypadVolume; |
1312 iBasicInfo.iKeypadVolume = aKeypadVolume; |
1340 } |
1313 } |
1341 |
1314 |
1342 // ----------------------------------------------------------------------------- |
1315 // ----------------------------------------------------------------------------- |
1343 // CPEEngineInfoImpl::SetLifeTimerData |
|
1344 // Sets lifetimer data of the phone to TPELifeTimeData-structure |
|
1345 // ----------------------------------------------------------------------------- |
|
1346 // |
|
1347 void CPEEngineInfoImpl::SetLifeTimerData( |
|
1348 TCCPLifeTimeDataPckg& aPckg ) |
|
1349 { |
|
1350 iBasicInfo.iLifeTimeData.iHours = aPckg().iHours; |
|
1351 iBasicInfo.iLifeTimeData.iMinutes = aPckg().iMinutes; |
|
1352 } |
|
1353 |
|
1354 // ----------------------------------------------------------------------------- |
|
1355 // CPEEngineInfoImpl::SetNetworkRegistrationStatus |
1316 // CPEEngineInfoImpl::SetNetworkRegistrationStatus |
1356 // Sets network registration status to TPEBasicInfo-structure |
1317 // Sets network registration status to TPEBasicInfo-structure |
1357 // ----------------------------------------------------------------------------- |
1318 // ----------------------------------------------------------------------------- |
1358 // |
1319 // |
1359 void CPEEngineInfoImpl::SetNetworkRegistrationStatus( |
1320 void CPEEngineInfoImpl::SetNetworkRegistrationStatus( |
1377 { |
1338 { |
1378 iBasicInfo.iPersonalToneStatus = aPersonalToneStatus; |
1339 iBasicInfo.iPersonalToneStatus = aPersonalToneStatus; |
1379 } |
1340 } |
1380 |
1341 |
1381 // ----------------------------------------------------------------------------- |
1342 // ----------------------------------------------------------------------------- |
1382 // CPEEngineInfoImpl::SetPhoneIdentityParameters |
|
1383 // Sets phone number to TPECallCommandInfo-structure |
|
1384 // ----------------------------------------------------------------------------- |
|
1385 // |
|
1386 void CPEEngineInfoImpl::SetPhoneIdentityParameters( |
|
1387 const TPEPhoneIdentityParameters& aPhoneIdentityParameters ) |
|
1388 { |
|
1389 iBasicInfo.iPhoneIdentityParameters = aPhoneIdentityParameters; |
|
1390 } |
|
1391 |
|
1392 // ----------------------------------------------------------------------------- |
|
1393 // CPEEngineInfoImpl::SetPhoneNumberIsServiceCode |
1343 // CPEEngineInfoImpl::SetPhoneNumberIsServiceCode |
1394 // Sets phone number parsing result |
1344 // Sets phone number parsing result |
1395 // ----------------------------------------------------------------------------- |
1345 // ----------------------------------------------------------------------------- |
1396 // |
1346 // |
1397 void CPEEngineInfoImpl::SetPhoneNumberIsServiceCode( |
1347 void CPEEngineInfoImpl::SetPhoneNumberIsServiceCode( |
2548 // ----------------------------------------------------------------------------- |
2498 // ----------------------------------------------------------------------------- |
2549 // CPEEngineInfoImpl::SetRemoteColpNumber |
2499 // CPEEngineInfoImpl::SetRemoteColpNumber |
2550 // ----------------------------------------------------------------------------- |
2500 // ----------------------------------------------------------------------------- |
2551 // |
2501 // |
2552 void CPEEngineInfoImpl::SetRemoteColpNumber( |
2502 void CPEEngineInfoImpl::SetRemoteColpNumber( |
2553 TPEPhoneNumber& aColpNumber, |
2503 const TPEPhoneNumber& aColpNumber, |
2554 const TInt aCallId ) |
2504 const TInt aCallId ) |
2555 { |
2505 { |
2556 return ( *iRemoteInfo )[ aCallId ]->SetColpNumber( aColpNumber ); |
2506 return ( *iRemoteInfo )[ aCallId ]->SetColpNumber( aColpNumber ); |
2557 } |
2507 } |
2558 |
2508 |
2639 { |
2589 { |
2640 TEFLOGSTRING2( KTAINT, "ContactId: %d", iContactId ); |
2590 TEFLOGSTRING2( KTAINT, "ContactId: %d", iContactId ); |
2641 return iContactId; |
2591 return iContactId; |
2642 } |
2592 } |
2643 |
2593 |
|
2594 // ----------------------------------------------------------------------------- |
|
2595 // CPEEngineInfoImpl::SetProtocolError |
|
2596 // Sets the protocol spesific error code |
|
2597 // ----------------------------------------------------------------------------- |
|
2598 // |
|
2599 void CPEEngineInfoImpl::SetProtocolError( TInt aError, TInt aCallId ) |
|
2600 { |
|
2601 if ( 0<=aCallId && aCallId<iCurrentCalls.Count() ) |
|
2602 { |
|
2603 iCurrentCalls[ aCallId ]->SetProtocolError( aError ); |
|
2604 } |
|
2605 } |
|
2606 |
|
2607 // ----------------------------------------------------------------------------- |
|
2608 // CPEEngineInfoImpl::ProtocolError |
|
2609 // Returns the protocol spesific error code |
|
2610 // ----------------------------------------------------------------------------- |
|
2611 // |
|
2612 TInt CPEEngineInfoImpl::ProtocolError( TInt aCallId ) |
|
2613 { |
|
2614 TInt ret( KErrNotFound ); |
|
2615 |
|
2616 if ( 0<=aCallId && aCallId<iCurrentCalls.Count() ) |
|
2617 { |
|
2618 ret = iCurrentCalls[ aCallId ]->ProtocolError(); |
|
2619 } |
|
2620 |
|
2621 return ret; |
|
2622 } |
|
2623 |
|
2624 // ----------------------------------------------------------------------------- |
|
2625 // CPEEngineInfoImpl::IsOutgoingCallBarringActivated |
|
2626 // ----------------------------------------------------------------------------- |
|
2627 // |
|
2628 TBool CPEEngineInfoImpl::IsOutgoingCallBarringActivated() |
|
2629 { |
|
2630 return iBasicInfo.iOutgoingBarringActivated; |
|
2631 } |
|
2632 |
|
2633 // ----------------------------------------------------------------------------- |
|
2634 // CPEEngineInfoImpl::SetOutgoingCallBarringActivated |
|
2635 // ----------------------------------------------------------------------------- |
|
2636 // |
|
2637 void CPEEngineInfoImpl::SetOutgoingCallBarringActivated( |
|
2638 TBool aActivated ) |
|
2639 { |
|
2640 iBasicInfo.iOutgoingBarringActivated = aActivated; |
|
2641 } |
|
2642 |
2644 // End of File |
2643 // End of File |