phoneapp/phoneuicontrol/inc/tphonecallheaderparam.h
branchRCL_3
changeset 62 5266b1f337bd
parent 61 41a7f70b3818
child 81 c26cc2a7c548
--- a/phoneapp/phoneuicontrol/inc/tphonecallheaderparam.h	Tue Aug 31 15:14:29 2010 +0300
+++ b/phoneapp/phoneuicontrol/inc/tphonecallheaderparam.h	Wed Sep 01 12:30:10 2010 +0100
@@ -20,6 +20,8 @@
 #define TPHONECALLHEADERPARAM_H
 
 //INCLUDES
+#include    <bmbubblemanager.h>
+
 #include    "mpeengineinfo.h"
 #include    "tphonecmdparamcallheaderdata.h"
 
@@ -68,6 +70,7 @@
         void SetOutgoingCallHeaderParamsL(
                 const TInt aCallId,
                 TPhoneCmdParamCallHeaderData* aCallHeaderData );
+				
         /**
         * Updates call header info. 
         * NOTE: This method is used when state receives
@@ -84,34 +87,25 @@
                 const TBool aWaitingCall,
                 const TBool aVideoCall,
                 TPhoneCmdParamCallHeaderData* aCallHeaderData );
-
+        
         /**
         * Sets the call header type used in the call bubble.
         * @param aCallHeaderType, call header type.
         */    
         void SetCallHeaderType( 
-                TInt aCallHeaderType );
+                const CBubbleManager::TPhoneCallTypeFlags aCallHeaderType );
         /**
         * Returns the set call header type. Used for constructing right type
         * of call bubble.
         */
-        TInt CallHeaderType() const;
-            
-        /**
-        * Setter for divert indication showing in bubble.
-        * @param aDivertIndication ETrue to show divert indication,
-        *        EFalse to not. Usually setting EFalse isn't necessary
-        *        as it's a default value in bubble creation.
-        */
-        void SetDivertIndication( const TBool aDivertIndication );
+        CBubbleManager::TPhoneCallTypeFlags CallHeaderType() const;
         
         /**
         * Return remote info data
-        * @return True if secondary CLI is used
         * @param aCallid call id
         * @param aData the returned remote info data
         */
-        TBool GetRemoteInfoDataL( 
+        void GetRemoteInfoDataL( 
                 const TInt aCallId,
                 TDes& aData ) const;           
     
@@ -170,7 +164,7 @@
         void GetCNAPText( 
                const TInt aCallId,
                TDes& aData, 
-               TPhoneCmdParamCallHeaderData::TPhoneTextClippingDirection& aDirection ) const;
+               CBubbleManager::TPhoneClippingDirection& aDirection ) const;
         
         /**
         * Check if contact is available(RemoteName or RemoteCompanyName),
@@ -219,6 +213,24 @@
                 TPhoneCmdParamCallHeaderData* aCallHeaderData );  
         
         /**
+        * Check if call is private or payphone number. If call is 
+        * Private/PayPhone call then IsCallPrivateOrPayPhone will 
+        * set SetIdentitySpecificCallHeaderData parameters.
+        * 
+        * @param aCallId Call id.
+        * @return ETrue if call is private or payphone number.
+        */
+        TBool IsCallPrivateOrPayPhone( const TInt aCallId, TDes& aData ) const;
+        
+        /**
+        * Sets identity specific call header text.
+        * 
+        * @param aCallId Call id.
+        * @param aData Identity  specific call header text data.
+        */
+        void SetIdentitySpecificCallHeaderData( const TInt aCallId, TDes& aData ) const;
+        
+        /**
         * Concludes does the engine have information of the
         * phone number. This information is then send to the view.
         * @param aNumberLength - phone number's length
@@ -227,14 +239,19 @@
         void SetPhoneNumberAvailabilityL( 
                 const TInt aNumberLength,
                 const TBool aContactInfoAvailable );
-                
+        
+        /**
+        * Set call header labels.
+        * @param aCallHeaderData - call header params.
+        */
+        void SetCallHeaderLabels( 
+               TPhoneCmdParamCallHeaderData* aCallHeaderData );
+        
     private:
         
         MPhoneCallHeaderManagerUtility& iManagerUtility;
         MPhoneStateMachine& iStateMachine;
-        TInt iCallHeaderType;
-        TBool iSetDivertIndication;
-            
+        CBubbleManager::TPhoneCallTypeFlags iCallHeaderType;
     };
 
 #endif // TPHONECALLHEADERPARAM_H