89 iBasicInfo.iSSCommandInfo.action = EPESSActionUnspecified; |
89 iBasicInfo.iSSCommandInfo.action = EPESSActionUnspecified; |
90 iBasicInfo.iSSCommandInfo.type = EPESSTypeUnspecified; |
90 iBasicInfo.iSSCommandInfo.type = EPESSTypeUnspecified; |
91 iBasicInfo.iSSCommandInfo.group = RMobilePhone::EServiceUnspecified; |
91 iBasicInfo.iSSCommandInfo.group = RMobilePhone::EServiceUnspecified; |
92 iBasicInfo.iSimState = EPESimStatusUninitialized; |
92 iBasicInfo.iSimState = EPESimStatusUninitialized; |
93 iBasicInfo.iSecureSpecified = ETrue; |
93 iBasicInfo.iSecureSpecified = ETrue; |
94 iBasicInfo.iDataPortName = KNullDesC; |
94 iBasicInfo.iDataPortName = KNullDesC; |
95 iBasicInfo.iSwitchToOngoing = EFalse; |
|
96 iConferenceCallInfo.iConferenceCallState = EPEStateConferenceIdle; |
95 iConferenceCallInfo.iConferenceCallState = EPEStateConferenceIdle; |
97 iBasicInfo.iOutgoingBarringActivated = EFalse; |
96 iBasicInfo.iOutgoingBarringActivated = EFalse; |
98 //TODO remove after profile information is available |
97 //TODO remove after profile information is available |
99 iBasicInfo.iRingingVolume = 10; |
98 iBasicInfo.iRingingVolume = 10; |
100 } |
99 } |
2075 CCCECallParameters& CPEEngineInfoImpl::CallParameters() |
2074 CCCECallParameters& CPEEngineInfoImpl::CallParameters() |
2076 { |
2075 { |
2077 return *iCallParams; |
2076 return *iCallParams; |
2078 } |
2077 } |
2079 |
2078 |
2080 // ----------------------------------------------------------------------------- |
|
2081 // CPEEngineInfoImpl::SetSwitchToNumberCommand |
|
2082 // Sets switch to number |
|
2083 // ----------------------------------------------------------------------------- |
|
2084 // |
|
2085 void CPEEngineInfoImpl::SetSwitchToNumberCommand( |
|
2086 const TPEPhoneNumber& aPhoneNumber ) |
|
2087 { |
|
2088 __ASSERT_DEBUG( !( aPhoneNumber.Length() > KPEPhoneNumberMaxLength ), |
|
2089 Panic( EPEPanicExternalDataIdOutOfRange ) ); |
|
2090 iCallCommandInfo.iSwitchToNumber = aPhoneNumber; |
|
2091 } |
|
2092 |
2079 |
2093 // ----------------------------------------------------------------------------- |
2080 // ----------------------------------------------------------------------------- |
2094 // From base class MPEDataStore |
2081 // From base class MPEDataStore |
2095 // Sets call index |
2082 // Sets call index |
2096 // ----------------------------------------------------------------------------- |
2083 // ----------------------------------------------------------------------------- |
2108 // |
2095 // |
2109 void CPEEngineInfoImpl::SetCallOrigin( TPECallOrigin aOrigin, TInt aCallId ) |
2096 void CPEEngineInfoImpl::SetCallOrigin( TPECallOrigin aOrigin, TInt aCallId ) |
2110 { |
2097 { |
2111 __ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
2098 __ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
2112 return iCurrentCalls[ aCallId ]->SetCallOrigin( aOrigin ); |
2099 return iCurrentCalls[ aCallId ]->SetCallOrigin( aOrigin ); |
2113 } |
|
2114 |
|
2115 // ----------------------------------------------------------------------------- |
|
2116 // CPEEngineInfoImpl::SwitchToNumberCommand |
|
2117 // Return the switch to number from the TPECallCommandInfo structure. |
|
2118 // ----------------------------------------------------------------------------- |
|
2119 // |
|
2120 const TPEPhoneNumber& CPEEngineInfoImpl::SwitchToNumberCommand() const |
|
2121 { |
|
2122 return iCallCommandInfo.iSwitchToNumber; |
|
2123 } |
2100 } |
2124 |
2101 |
2125 |
2102 |
2126 // ----------------------------------------------------------------------------- |
2103 // ----------------------------------------------------------------------------- |
2127 // CPEEngineInfoImpl::UnattendedTransferTarget |
2104 // CPEEngineInfoImpl::UnattendedTransferTarget |
2209 const TPEPhoneNumber& CPEEngineInfoImpl::TransferTargetCommand() const |
2186 const TPEPhoneNumber& CPEEngineInfoImpl::TransferTargetCommand() const |
2210 { |
2187 { |
2211 return iCallCommandInfo.iTransferToAddress; |
2188 return iCallCommandInfo.iTransferToAddress; |
2212 } |
2189 } |
2213 |
2190 |
2214 // ----------------------------------------------------------------------------- |
|
2215 // CPEEngineInfo::SetIsSwitchToOperationOngoing |
|
2216 // (other items were commented in a header). |
|
2217 // ----------------------------------------------------------------------------- |
|
2218 // |
|
2219 void CPEEngineInfoImpl::SetIsSwitchToOperationOngoing( const TBool aValue ) |
|
2220 { |
|
2221 TEFLOGSTRING2( KTAINT, "SetIsSwitchToOperationOngoing: %d", aValue ); |
|
2222 iBasicInfo.iSwitchToOngoing = aValue; |
|
2223 } |
|
2224 |
|
2225 // ----------------------------------------------------------------------------- |
|
2226 // CPEEngineInfo::IsSwitchToOperationOngoing |
|
2227 // (other items were commented in a header). |
|
2228 // ----------------------------------------------------------------------------- |
|
2229 // |
|
2230 TBool CPEEngineInfoImpl::IsSwitchToOperationOngoing() const |
|
2231 { |
|
2232 TEFLOGSTRING2( KTAINT, "IsSwitchToOperationOngoing: %d", iBasicInfo.iSwitchToOngoing ); |
|
2233 return iBasicInfo.iSwitchToOngoing; |
|
2234 } |
|
2235 |
2191 |
2236 // ----------------------------------------------------------------------------- |
2192 // ----------------------------------------------------------------------------- |
2237 // CPEEngineInfo::CallOrigin |
2193 // CPEEngineInfo::CallOrigin |
2238 // (other items were commented in a header). |
2194 // (other items were commented in a header). |
2239 // ----------------------------------------------------------------------------- |
2195 // ----------------------------------------------------------------------------- |
2638 TBool aActivated ) |
2594 TBool aActivated ) |
2639 { |
2595 { |
2640 iBasicInfo.iOutgoingBarringActivated = aActivated; |
2596 iBasicInfo.iOutgoingBarringActivated = aActivated; |
2641 } |
2597 } |
2642 |
2598 |
|
2599 // ----------------------------------------------------------------------------- |
|
2600 // CPEEngineInfoImpl::SetProtocolError |
|
2601 // Sets the protocol spesific error code |
|
2602 // ----------------------------------------------------------------------------- |
|
2603 // |
|
2604 void CPEEngineInfoImpl::SetIncomingCallForwarded( TBool aForwarded, TInt aCallId ) |
|
2605 { |
|
2606 if ( 0<=aCallId && aCallId<iCurrentCalls.Count() ) |
|
2607 { |
|
2608 iCurrentCalls[ aCallId ]->SetIncomingCallForwarded( aForwarded ); |
|
2609 } |
|
2610 } |
|
2611 |
|
2612 // ----------------------------------------------------------------------------- |
|
2613 // CPEEngineInfoImpl::IncomingCallForwarded |
|
2614 // ----------------------------------------------------------------------------- |
|
2615 // |
|
2616 TBool CPEEngineInfoImpl::IncomingCallForwarded( TInt aCallId ) const |
|
2617 { |
|
2618 TBool ret( EFalse ); |
|
2619 |
|
2620 if ( 0<=aCallId && aCallId<iCurrentCalls.Count() ) |
|
2621 { |
|
2622 ret = iCurrentCalls[ aCallId ]->IncomingCallForwarded(); |
|
2623 } |
|
2624 |
|
2625 return ret; |
|
2626 } |
|
2627 |
2643 // End of File |
2628 // End of File |