phoneengine/engineinfo/inc/cpeengineinfoimpl.h
changeset 21 92ab7f8d0eab
parent 1 838b0a10d15b
child 22 6bb1b21d2484
equal deleted inserted replaced
4:c84cf270c54f 21:92ab7f8d0eab
    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     };
    56     };
    57 
    57 
    58 NONSHARABLE_STRUCT( TPEBasicInfo )                         // Contains information of the phone related variables 
    58 NONSHARABLE_STRUCT( TPEBasicInfo )                         // Contains information of the phone related variables 
    59     {
    59     {
    60 	TBool iAudioMute;                       // state of microphone.					
    60     TBool iAudioMute;                       // state of microphone.                 
    61 	TBool iTwoDigitSupportStatus;           // Two Digit support status
    61     TBool iTwoDigitSupportStatus;           // Two Digit support status
    62 	TBool iALSLineSupport;                  // ALS line support.				
    62     TBool iALSLineSupport;                  // ALS line support.                
    63 	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
    64 	TInt iAudioVolume;                      // Audio volume					
    64     TInt iAudioVolume;                      // Audio volume                 
    65 	TInt iKeypadVolume;                     // Keypad volume					
    65     TInt iKeypadVolume;                     // Keypad volume                    
    66 	TInt iLastCallDuration;                 // Call duration (seconds)					
    66     TInt iLastCallDuration;                 // Call duration (seconds)                  
    67 	TInt iPersonalToneStatus;               // Personal tone status					
    67     TInt iPersonalToneStatus;               // Personal tone status                 
    68 	TInt iProfileId;                        // the id number of the profile					
    68     TInt iProfileId;                        // the id number of the profile                 
    69 	TInt iRingingVolume;                    // Current ringing volume					
    69     TInt iRingingVolume;                    // Current ringing volume                   
    70 	TBool iTextToSpeech;                    // Current text-to-speech setting
    70     TBool iTextToSpeech;                    // Current text-to-speech setting
    71 	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
    72 	TNWNetworkRegistrationStatus iNetworkRegistrationStatus;					
    72     TNWNetworkRegistrationStatus iNetworkRegistrationStatus;                    
    73     CCCECallParameters::TCCELineType iALSLine;        // includes active als line.                  
    73     CCCECallParameters::TCCELineType iALSLine;        // includes active als line.                  
    74 	TPEContactFileName iRingingToneName1;   // Current ringingtone name					
    74     TPEContactFileName iRingingToneName1;   // Current ringingtone name                 
    75 	TPEContactFileName iRingingToneName2;
    75     TPEContactFileName iRingingToneName2;
    76 	TPEContactFileName iVideoCallRingingTone; // Video call ringingtone name									
    76     TPEContactFileName iVideoCallRingingTone; // Video call ringingtone name                                    
    77 	TPEDtmfString iDtmfString;              // Dtmf string.					
    77     TPEDtmfString iDtmfString;              // Dtmf string.                 
    78 	TPEErrorInfo iErrorInfo;                // possible error code					
    78     TPEErrorInfo iErrorInfo;                // possible error code                  
    79 	TPELifeTimeData iLifeTimeData;					
    79     TPELifeTimeData iLifeTimeData;                  
    80 	TPEPhoneIdentityParameters iPhoneIdentityParameters; // the phone identity parameters					
    80     TPEPhoneIdentityParameters iPhoneIdentityParameters; // the phone identity parameters                   
    81 	TPEProfileName iProfileName;            // the name of the profile					
    81     TPEProfileName iProfileName;            // the name of the profile                  
    82 	TProfileRingingType iRingingType;       // Includes current ringing type 					
    82     TProfileRingingType iRingingType;       // Includes current ringing type                    
    83 	TPEVoiceMailBoxNumberInfo iVMBXNumbers; // Voice mail box numbers
    83     TPEVoiceMailBoxNumberInfo iVMBXNumbers; // Voice mail box numbers
    84 	TPEPhoneAudioRouteParameters iPhoneAudioRouteParameters; // the phone audio route parameters
    84     TPEPhoneAudioRouteParameters iPhoneAudioRouteParameters; // the phone audio route parameters
    85 	TCCPTone iInbandTone;                   // Inband tone needed to play in a call state transition or error
    85     TCCPTone iInbandTone;                   // Inband tone needed to play in a call state transition or error
    86 	TPEActiveForwardInfo iActiveForward;    // active forward information.
    86     TPEActiveForwardInfo iActiveForward;    // active forward information.
    87 	TPEBarringInfo iBarringInfo;            // includes call barring information.
    87     TPEBarringInfo iBarringInfo;            // includes call barring information.
    88 	TPESimState iSimState;
    88     TPESimState iSimState;
    89 	TPESSCommandInfo iSSCommandInfo;        // Contains information of the Suplementary Services command.
    89     TPESSCommandInfo iSSCommandInfo;        // Contains information of the Suplementary Services command.
    90     TBool iSecureSpecified;                 // Secure specified status
    90     TBool iSecureSpecified;                 // Secure specified status
    91 	TName iDataPortName;                    // the name of data port currently on-loan
    91     TName iDataPortName;                    // the name of data port currently on-loan
    92     TBool iSwitchToOngoing;                 // Switch to operation status
    92     TBool iSwitchToOngoing;                 // Switch to operation status
    93     };
    93     };
    94 
    94 
    95 NONSHARABLE_STRUCT( TPEConferenceCallInfo ) // Contains conference call related variables 
    95 NONSHARABLE_STRUCT( TPEConferenceCallInfo ) // Contains conference call related variables 
    96     {
    96     {
   250         * Gets secure status from call info
   250         * Gets secure status from call info
   251         * @param aCallId is the call identification number.
   251         * @param aCallId is the call identification number.
   252         * @return TBool the secure status (on/off)
   252         * @return TBool the secure status (on/off)
   253         */
   253         */
   254         TBool IsSecureCall( const TInt aCallId ) const;
   254         TBool IsSecureCall( const TInt aCallId ) const;
   255 		
   255         
   256         /**
   256         /**
   257         * Gets dtmf postfix
   257         * Gets dtmf postfix
   258         * @param aCallId is the call identification number.
   258         * @param aCallId is the call identification number.
   259         * @return dtmf postfix
   259         * @return dtmf postfix
   260         */
   260         */
   616           */
   616           */
   617          TPECallOrigin CallOrigin( const TInt aCallId ) const;
   617          TPECallOrigin CallOrigin( const TInt aCallId ) const;
   618          
   618          
   619          /**
   619          /**
   620          * Checks if given state can be found.
   620          * Checks if given state can be found.
   621 		 * @param aCallState state to be checked.
   621          * @param aCallState state to be checked.
   622          */
   622          */
   623           TBool CheckIfCallStateExists( const TPEState& aCallState );
   623           TBool CheckIfCallStateExists( const TPEState& aCallState );
   624 
   624 
   625     // Functions from MPEDataStore (reading values)
   625     // Functions from MPEDataStore (reading values)
   626     public:
   626     public:
  1256         * Set remote end connected phone number
  1256         * Set remote end connected phone number
  1257         * @param aColpNumber phone number
  1257         * @param aColpNumber phone number
  1258         * @param aCallId, is the call identification number.
  1258         * @param aCallId, is the call identification number.
  1259         */
  1259         */
  1260         void SetRemoteColpNumber(
  1260         void SetRemoteColpNumber(
  1261             const TPEPhoneNumber& aColpNumber, 
  1261             TPEPhoneNumber& aColpNumber, 
  1262             const TInt aCallId );
  1262             const TInt aCallId );
  1263 
  1263 
  1264         /**
  1264         /**
  1265         * Set contact name
  1265         * Set contact name
  1266         * Depending on user selected language may be in order:
  1266         * Depending on user selected language may be in order:
  1503 
  1503 
  1504         /**
  1504         /**
  1505          * @see MPEDataStore::UserToUserInformation
  1505          * @see MPEDataStore::UserToUserInformation
  1506          * @since S60 5.0
  1506          * @since S60 5.0
  1507          */
  1507          */
  1508 		void SetUserToUserInformation( const TPEUserToUserInfo& aUUI );
  1508         void SetUserToUserInformation( const TPEUserToUserInfo& aUUI );
  1509 		
  1509         
  1510         /**
  1510         /**
  1511          * Sets remote party name given by network to TPECallInfo structure.
  1511          * Sets remote party name given by network to TPECallInfo structure.
  1512          * @param aName Remote party name.
  1512          * @param aName Remote party name.
  1513          * @param aCallId Call identification number.
  1513          * @param aCallId Call identification number.
  1514          */
  1514          */
  1527         /**
  1527         /**
  1528          * From base class MPEDataStore
  1528          * From base class MPEDataStore
  1529          * @see MPEDataStore::SetCallOrigin          
  1529          * @see MPEDataStore::SetCallOrigin          
  1530          */
  1530          */
  1531         void SetCallOrigin( TPECallOrigin aOrigin, TInt aCallId );
  1531         void SetCallOrigin( TPECallOrigin aOrigin, TInt aCallId );
  1532                 
  1532       
       
  1533 // <-- QT PHONE START -->
       
  1534         /**
       
  1535         * Sets call Phonebook contact identifier.
       
  1536         * @param aContactId is the contact identifier for a call
       
  1537         */
       
  1538         void SetContactId2( const TInt aContactId );
       
  1539 
       
  1540         /**
       
  1541          * Returns Phonebook contact identifier.
       
  1542          */
       
  1543         TInt ContactId2() const;
       
  1544 // <-- QT PHONE END -->
       
  1545           
  1533     private:
  1546     private:
  1534           /**
  1547           /**
  1535         * C++ default constructor.
  1548         * C++ default constructor.
  1536         */
  1549         */
  1537         CPEEngineInfoImpl();
  1550         CPEEngineInfoImpl();
  1559 
  1572 
  1560         // Available audio outputs array
  1573         // Available audio outputs array
  1561         TFixedArray<TBool, KPEMaxAudioOutputs> iAvailableAudioOutputs;
  1574         TFixedArray<TBool, KPEMaxAudioOutputs> iAvailableAudioOutputs;
  1562 
  1575 
  1563         // Contains the group id's which are active for ringtone
  1576         // Contains the group id's which are active for ringtone
  1564     	RArray< TContactItemId > iAlertForGroup;
  1577         RArray< TContactItemId > iAlertForGroup;
  1565 
  1578 
  1566         /**
  1579         /**
  1567          * CCE call dial parameters
  1580          * CCE call dial parameters
  1568          */
  1581          */
  1569         CCCECallParameters *iCallParams;
  1582         CCCECallParameters *iCallParams;
  1570 
  1583 
       
  1584 // <-- QT PHONE START -->
       
  1585         /**
       
  1586          * Phonebook contact identifier.
       
  1587          */
       
  1588         TInt iContactId;
       
  1589 // <-- QT PHONE END -->
  1571     };
  1590     };
  1572 
  1591 
  1573 
  1592 
  1574 #endif // CPEENGINEINFOIMPL_H   
  1593 #endif // CPEENGINEINFOIMPL_H   
  1575             
  1594