34 // None. |
34 // None. |
35 |
35 |
36 // DATA TYPES |
36 // DATA TYPES |
37 NONSHARABLE_STRUCT( TPECallCommandInfo ) // For Mobile Originated Call Commands |
37 NONSHARABLE_STRUCT( TPECallCommandInfo ) // For Mobile Originated Call Commands |
38 { |
38 { |
39 TChar iKeyCode; // pressed key code |
39 TChar iKeyCode; // pressed key code |
40 TInt iAudioMute; // state of microphone ( 0 = false, 1 = true ) |
40 TInt iAudioMute; // state of microphone ( 0 = false, 1 = true ) |
41 TInt iAudioVolume; // Audio volume |
41 TInt iAudioVolume; // Audio volume |
42 TPEAudioOutput iAudioOutput; // audio output path |
42 TPEAudioOutput iAudioOutput; // audio output path |
43 TBool iShowNote; // Status of call audio route info note. |
43 TBool iShowNote; // Status of call audio route info note. |
44 TInt iCallId; // Calls ID |
44 TInt iCallId; // Calls ID |
45 TPEDtmfString iDtmfString; // Dtmf string to be sent. |
45 TPEDtmfString iDtmfString; // Dtmf string to be sent. |
46 TPEPhoneNumber iPhoneNumber; // Dialed Phonenumber, set by client |
46 TPEPhoneNumber iPhoneNumber; // Dialed Phonenumber, set by client |
47 TPECallType iCallType; // Type of the attempted call |
47 TPECallType iCallType; // Type of the attempted call |
48 TUint32 iServiceId; // ServiceId |
48 TUint32 iServiceId; // ServiceId |
49 TPECallOrigin iCallOrigin; // Origin of the attempted call (Phone, client or SAT) |
49 TPECallOrigin iCallOrigin; // Origin of the attempted call (Phone, client or SAT) |
50 RMobileCall::TMobileCallIdRestriction iIdRestrict; // Call Id restriction setting to be used for this call |
50 RMobileCall::TMobileCallIdRestriction iIdRestrict; // Call Id restriction setting to be used for this call |
51 TPEPhoneNumber iEmergencyNumber; // For checking is this number emergency number. |
51 TPEPhoneNumber iEmergencyNumber; // For checking is this number emergency number. |
52 TPEUserToUserInfo iUserToUserInfo; // User to user information. |
52 TPEUserToUserInfo iUserToUserInfo; // User to user information. |
53 TPEPhoneNumber iSwitchToNumber; // Dialed Phonenumber, set by client |
53 TPEPhoneNumber iSwitchToNumber; // Dialed Phonenumber, set by client |
54 TPEPhoneNumber iTransferToAddress; // Unattended transfer target address |
54 TPEPhoneNumber iTransferToAddress; // Unattended transfer target address |
55 TInt iForwardToAddressIndex; // Array index for a address to be forwarded |
55 TInt iForwardToAddressIndex; // Array index for a address to be forwarded |
56 TBool iTransferDial; // Flag which indicates utransfer dial |
|
57 }; |
56 }; |
58 |
57 |
59 NONSHARABLE_STRUCT( TPEBasicInfo ) // Contains information of the phone related variables |
58 NONSHARABLE_STRUCT( TPEBasicInfo ) // Contains information of the phone related variables |
60 { |
59 { |
61 TBool iAudioMute; // state of microphone. |
60 TBool iAudioMute; // state of microphone. |
62 TBool iTwoDigitSupportStatus; // Two Digit support status |
61 TBool iTwoDigitSupportStatus; // Two Digit support status |
63 TBool iALSLineSupport; // ALS line support. |
62 TBool iALSLineSupport; // ALS line support. |
64 TInt iAudioOutputPreference; // Audio output preference (private/public) - TODO: change type to enum when available |
63 TInt iAudioOutputPreference; // Audio output preference (private/public) - TODO: change type to enum when available |
65 TInt iAudioVolume; // Audio volume |
64 TInt iAudioVolume; // Audio volume |
66 TInt iKeypadVolume; // Keypad volume |
65 TInt iKeypadVolume; // Keypad volume |
67 TInt iLastCallDuration; // Call duration (seconds) |
66 TInt iLastCallDuration; // Call duration (seconds) |
68 TInt iPersonalToneStatus; // Personal tone status |
67 TInt iPersonalToneStatus; // Personal tone status |
69 TInt iProfileId; // the id number of the profile |
68 TInt iProfileId; // the id number of the profile |
70 TInt iRingingVolume; // Current ringing volume |
69 TInt iRingingVolume; // Current ringing volume |
71 TBool iTextToSpeech; // Current text-to-speech setting |
70 TBool iTextToSpeech; // Current text-to-speech setting |
72 TBool iPhoneNumberIsServiceCode; // flag indicating if the phone number is a service code |
71 TBool iPhoneNumberIsServiceCode; // flag indicating if the phone number is a service code |
73 TNWNetworkRegistrationStatus iNetworkRegistrationStatus; |
72 TNWNetworkRegistrationStatus iNetworkRegistrationStatus; |
74 CCCECallParameters::TCCELineType iALSLine; // includes active als line. |
73 CCCECallParameters::TCCELineType iALSLine; // includes active als line. |
75 TPEContactFileName iRingingToneName1; // Current ringingtone name |
74 TPEContactFileName iRingingToneName1; // Current ringingtone name |
76 TPEContactFileName iRingingToneName2; |
75 TPEContactFileName iRingingToneName2; |
77 TPEContactFileName iVideoCallRingingTone; // Video call ringingtone name |
76 TPEContactFileName iVideoCallRingingTone; // Video call ringingtone name |
78 TPEDtmfString iDtmfString; // Dtmf string. |
77 TPEDtmfString iDtmfString; // Dtmf string. |
79 TPEErrorInfo iErrorInfo; // possible error code |
78 TPEErrorInfo iErrorInfo; // possible error code |
80 TPELifeTimeData iLifeTimeData; |
79 TPEProfileName iProfileName; // the name of the profile |
81 TPEPhoneIdentityParameters iPhoneIdentityParameters; // the phone identity parameters |
80 TProfileRingingType iRingingType; // Includes current ringing type |
82 TPEProfileName iProfileName; // the name of the profile |
81 TPEVoiceMailBoxNumberInfo iVMBXNumbers; // Voice mail box numbers |
83 TProfileRingingType iRingingType; // Includes current ringing type |
82 TPEPhoneAudioRouteParameters iPhoneAudioRouteParameters; // the phone audio route parameters |
84 TPEVoiceMailBoxNumberInfo iVMBXNumbers; // Voice mail box numbers |
83 TCCPTone iInbandTone; // Inband tone needed to play in a call state transition or error |
85 TPEPhoneAudioRouteParameters iPhoneAudioRouteParameters; // the phone audio route parameters |
84 TPEActiveForwardInfo iActiveForward; // active forward information. |
86 TCCPTone iInbandTone; // Inband tone needed to play in a call state transition or error |
85 TPEBarringInfo iBarringInfo; // includes call barring information. |
87 TPEActiveForwardInfo iActiveForward; // active forward information. |
86 TPESimState iSimState; |
88 TPEBarringInfo iBarringInfo; // includes call barring information. |
87 TPESSCommandInfo iSSCommandInfo; // Contains information of the Suplementary Services command. |
89 TPESimState iSimState; |
|
90 TPESSCommandInfo iSSCommandInfo; // Contains information of the Suplementary Services command. |
|
91 TBool iSecureSpecified; // Secure specified status |
88 TBool iSecureSpecified; // Secure specified status |
92 TName iDataPortName; // the name of data port currently on-loan |
89 TName iDataPortName; // the name of data port currently on-loan |
93 TBool iSwitchToOngoing; // Switch to operation status |
90 TBool iSwitchToOngoing; // Switch to operation status |
94 TPEPhoneNumber iCallBackAddress; // Address of the transfer originator used for calling back |
91 TBool iOutgoingBarringActivated; // Outgoing barring activated |
95 }; |
92 }; |
96 |
93 |
97 NONSHARABLE_STRUCT( TPEConferenceCallInfo ) // Contains conference call related variables |
94 NONSHARABLE_STRUCT( TPEConferenceCallInfo ) // Contains conference call related variables |
98 { |
95 { |
99 TPEState iConferenceCallState; |
96 TPEState iConferenceCallState; |
618 */ |
603 */ |
619 TPECallOrigin CallOrigin( const TInt aCallId ) const; |
604 TPECallOrigin CallOrigin( const TInt aCallId ) const; |
620 |
605 |
621 /** |
606 /** |
622 * Checks if given state can be found. |
607 * Checks if given state can be found. |
623 * @param aCallState state to be checked. |
608 * @param aCallState state to be checked. |
624 */ |
609 */ |
625 TBool CheckIfCallStateExists( const TPEState& aCallState ); |
610 TBool CheckIfCallStateExists( const TPEState& aCallState ); |
626 |
611 |
627 /** |
612 /** |
628 * From base class MPEEngineInfo |
613 * Sets the protocol spesific error code |
629 * @see MPEEngineInfo::SetTransferDial |
614 * @param aError is the error code from protocol. |
|
615 * @return None. |
630 */ |
616 */ |
631 void SetIsTransferDial( TBool aTransferDial ); |
617 void SetProtocolError( TInt aError ); |
632 |
|
633 /** |
|
634 * From base class MPEEngineInfo |
|
635 * @see MPEEngineInfo::IsTransferDial |
|
636 */ |
|
637 TBool IsTransferDial() const; |
|
638 |
|
639 /** |
|
640 * From base class MPEEngineInfo |
|
641 * @see MPEEngineInfo::SetCallBackAddress |
|
642 */ |
|
643 void SetCallBackAddress( const TDesC& aAddress ); |
|
644 |
|
645 /** |
|
646 * From base class MPEEngineInfo |
|
647 * @see MPEEngineInfo::CallBackAddress |
|
648 */ |
|
649 const TDesC& CallBackAddress() const; |
|
650 |
618 |
651 // Functions from MPEDataStore (reading values) |
619 // Functions from MPEDataStore (reading values) |
652 public: |
620 public: |
653 /** |
621 /** |
654 * Gets group ids which are active to play ring tone |
622 * Gets group ids which are active to play ring tone |
1559 /** |
1508 /** |
1560 * From base class MPEDataStore |
1509 * From base class MPEDataStore |
1561 * @see MPEDataStore::SetCallOrigin |
1510 * @see MPEDataStore::SetCallOrigin |
1562 */ |
1511 */ |
1563 void SetCallOrigin( TPECallOrigin aOrigin, TInt aCallId ); |
1512 void SetCallOrigin( TPECallOrigin aOrigin, TInt aCallId ); |
1564 |
1513 |
1565 /** |
1514 /** |
1566 * From base class MPEDataStore |
1515 * Sets call Phonebook contact identifier. |
1567 * @see MPEDataStore::SetDoCallBackRequest |
1516 * @param aContactId is the contact identifier for a call |
1568 */ |
1517 */ |
1569 void SetDoCallBackRequest( TBool aDoCallBack, TInt aCallId ); |
1518 void SetContactId2( const TInt aContactId ); |
1570 |
1519 |
|
1520 /** |
|
1521 * Returns Phonebook contact identifier. |
|
1522 */ |
|
1523 TInt ContactId2() const; |
|
1524 |
|
1525 /** |
|
1526 * Sets the protocol spesific error code |
|
1527 * @param aError is the error code from protocol. |
|
1528 * @return None. |
|
1529 */ |
|
1530 void SetProtocolError( TInt aError, TInt aCallId ); |
|
1531 |
|
1532 /** |
|
1533 * Returns the protocol spesific error code |
|
1534 * @return Error code. |
|
1535 */ |
|
1536 TInt ProtocolError( TInt aCallId ); |
|
1537 |
|
1538 /** |
|
1539 * Returns flag if the outgoing barring is activated. |
|
1540 * @return ETrue if barring activated. |
|
1541 */ |
|
1542 TBool IsOutgoingCallBarringActivated(); |
|
1543 |
|
1544 /** |
|
1545 * Sets the flag if the outgoing barring is activated. |
|
1546 * @return ETrue if barring activated. |
|
1547 */ |
|
1548 void SetOutgoingCallBarringActivated( |
|
1549 TBool aActivated ); |
|
1550 |
1571 private: |
1551 private: |
1572 /** |
1552 /** |
1573 * C++ default constructor. |
1553 * C++ default constructor. |
1574 */ |
1554 */ |
1575 CPEEngineInfoImpl(); |
1555 CPEEngineInfoImpl(); |