phoneapp/phoneuicontrol/inc/tphonecallheaderparam.h
branchRCL_3
changeset 61 41a7f70b3818
parent 58 40a3f856b14d
child 62 5266b1f337bd
equal deleted inserted replaced
58:40a3f856b14d 61:41a7f70b3818
    18 
    18 
    19 #ifndef TPHONECALLHEADERPARAM_H
    19 #ifndef TPHONECALLHEADERPARAM_H
    20 #define TPHONECALLHEADERPARAM_H
    20 #define TPHONECALLHEADERPARAM_H
    21 
    21 
    22 //INCLUDES
    22 //INCLUDES
    23 #include    <bmbubblemanager.h>
       
    24 
       
    25 #include    "mpeengineinfo.h"
    23 #include    "mpeengineinfo.h"
    26 #include    "tphonecmdparamcallheaderdata.h"
    24 #include    "tphonecmdparamcallheaderdata.h"
    27 
    25 
    28 //FORWARD
    26 //FORWARD
    29 class MPhoneStateMachine;
    27 class MPhoneStateMachine;
    68         *                          parameters will be set.
    66         *                          parameters will be set.
    69         */
    67         */
    70         void SetOutgoingCallHeaderParamsL(
    68         void SetOutgoingCallHeaderParamsL(
    71                 const TInt aCallId,
    69                 const TInt aCallId,
    72                 TPhoneCmdParamCallHeaderData* aCallHeaderData );
    70                 TPhoneCmdParamCallHeaderData* aCallHeaderData );
    73 				
       
    74         /**
    71         /**
    75         * Updates call header info. 
    72         * Updates call header info. 
    76         * NOTE: This method is used when state receives
    73         * NOTE: This method is used when state receives
    77         * EPEMessageRemotePartyInfoChanged from PhoneEngine.
    74         * EPEMessageRemotePartyInfoChanged from PhoneEngine.
    78         * 
    75         * 
    85         void UpdateCallHeaderInfoL( 
    82         void UpdateCallHeaderInfoL( 
    86                 const TInt aCallId,
    83                 const TInt aCallId,
    87                 const TBool aWaitingCall,
    84                 const TBool aWaitingCall,
    88                 const TBool aVideoCall,
    85                 const TBool aVideoCall,
    89                 TPhoneCmdParamCallHeaderData* aCallHeaderData );
    86                 TPhoneCmdParamCallHeaderData* aCallHeaderData );
    90         
    87 
    91         /**
    88         /**
    92         * Sets the call header type used in the call bubble.
    89         * Sets the call header type used in the call bubble.
    93         * @param aCallHeaderType, call header type.
    90         * @param aCallHeaderType, call header type.
    94         */    
    91         */    
    95         void SetCallHeaderType( 
    92         void SetCallHeaderType( 
    96                 const CBubbleManager::TPhoneCallTypeFlags aCallHeaderType );
    93                 TInt aCallHeaderType );
    97         /**
    94         /**
    98         * Returns the set call header type. Used for constructing right type
    95         * Returns the set call header type. Used for constructing right type
    99         * of call bubble.
    96         * of call bubble.
   100         */
    97         */
   101         CBubbleManager::TPhoneCallTypeFlags CallHeaderType() const;
    98         TInt CallHeaderType() const;
       
    99             
       
   100         /**
       
   101         * Setter for divert indication showing in bubble.
       
   102         * @param aDivertIndication ETrue to show divert indication,
       
   103         *        EFalse to not. Usually setting EFalse isn't necessary
       
   104         *        as it's a default value in bubble creation.
       
   105         */
       
   106         void SetDivertIndication( const TBool aDivertIndication );
   102         
   107         
   103         /**
   108         /**
   104         * Return remote info data
   109         * Return remote info data
       
   110         * @return True if secondary CLI is used
   105         * @param aCallid call id
   111         * @param aCallid call id
   106         * @param aData the returned remote info data
   112         * @param aData the returned remote info data
   107         */
   113         */
   108         void GetRemoteInfoDataL( 
   114         TBool GetRemoteInfoDataL( 
   109                 const TInt aCallId,
   115                 const TInt aCallId,
   110                 TDes& aData ) const;           
   116                 TDes& aData ) const;           
   111     
   117     
   112         /**
   118         /**
   113         * Sets texts for voice call header.
   119         * Sets texts for voice call header.
   162         * @param aDirection the returned CNAP clipping direction
   168         * @param aDirection the returned CNAP clipping direction
   163         */
   169         */
   164         void GetCNAPText( 
   170         void GetCNAPText( 
   165                const TInt aCallId,
   171                const TInt aCallId,
   166                TDes& aData, 
   172                TDes& aData, 
   167                CBubbleManager::TPhoneClippingDirection& aDirection ) const;
   173                TPhoneCmdParamCallHeaderData::TPhoneTextClippingDirection& aDirection ) const;
   168         
   174         
   169         /**
   175         /**
   170         * Check if contact is available(RemoteName or RemoteCompanyName),
   176         * Check if contact is available(RemoteName or RemoteCompanyName),
   171         * if available ETrue is returned otherwise EFalse.
   177         * if available ETrue is returned otherwise EFalse.
   172         * @param aCallid call id
   178         * @param aCallid call id
   209         *                          are made.
   215         *                          are made.
   210         */
   216         */
   211         void SetCliParamatersL(
   217         void SetCliParamatersL(
   212                 const TInt aCallId, 
   218                 const TInt aCallId, 
   213                 TPhoneCmdParamCallHeaderData* aCallHeaderData );  
   219                 TPhoneCmdParamCallHeaderData* aCallHeaderData );  
   214         
       
   215         /**
       
   216         * Check if call is private or payphone number. If call is 
       
   217         * Private/PayPhone call then IsCallPrivateOrPayPhone will 
       
   218         * set SetIdentitySpecificCallHeaderData parameters.
       
   219         * 
       
   220         * @param aCallId Call id.
       
   221         * @return ETrue if call is private or payphone number.
       
   222         */
       
   223         TBool IsCallPrivateOrPayPhone( const TInt aCallId, TDes& aData ) const;
       
   224         
       
   225         /**
       
   226         * Sets identity specific call header text.
       
   227         * 
       
   228         * @param aCallId Call id.
       
   229         * @param aData Identity  specific call header text data.
       
   230         */
       
   231         void SetIdentitySpecificCallHeaderData( const TInt aCallId, TDes& aData ) const;
       
   232         
   220         
   233         /**
   221         /**
   234         * Concludes does the engine have information of the
   222         * Concludes does the engine have information of the
   235         * phone number. This information is then send to the view.
   223         * phone number. This information is then send to the view.
   236         * @param aNumberLength - phone number's length
   224         * @param aNumberLength - phone number's length
   237         * @param aContactInfoAvailable - is contact's info available
   225         * @param aContactInfoAvailable - is contact's info available
   238         */
   226         */
   239         void SetPhoneNumberAvailabilityL( 
   227         void SetPhoneNumberAvailabilityL( 
   240                 const TInt aNumberLength,
   228                 const TInt aNumberLength,
   241                 const TBool aContactInfoAvailable );
   229                 const TBool aContactInfoAvailable );
   242         
   230                 
   243         /**
       
   244         * Set call header labels.
       
   245         * @param aCallHeaderData - call header params.
       
   246         */
       
   247         void SetCallHeaderLabels( 
       
   248                TPhoneCmdParamCallHeaderData* aCallHeaderData );
       
   249         
       
   250     private:
   231     private:
   251         
   232         
   252         MPhoneCallHeaderManagerUtility& iManagerUtility;
   233         MPhoneCallHeaderManagerUtility& iManagerUtility;
   253         MPhoneStateMachine& iStateMachine;
   234         MPhoneStateMachine& iStateMachine;
   254         CBubbleManager::TPhoneCallTypeFlags iCallHeaderType;
   235         TInt iCallHeaderType;
       
   236         TBool iSetDivertIndication;
       
   237             
   255     };
   238     };
   256 
   239 
   257 #endif // TPHONECALLHEADERPARAM_H
   240 #endif // TPHONECALLHEADERPARAM_H