phoneengine/phonemodel/inc/cpemessagehandler.h
branchRCL_3
changeset 61 41a7f70b3818
parent 58 40a3f856b14d
child 62 5266b1f337bd
--- a/phoneengine/phonemodel/inc/cpemessagehandler.h	Thu Aug 19 09:54:27 2010 +0300
+++ b/phoneengine/phonemodel/inc/cpemessagehandler.h	Tue Aug 31 15:14:29 2010 +0300
@@ -22,11 +22,12 @@
 
 //  INCLUDES
 #include <pevirtualengine.h>
-#include "DosSvrServices.h"
-#include <CPhCltCommandHandler.h>
+#include <DosSvrServices.h>
+#include <cphcltcommandhandler.h>
 #include <cphcltdialdata.h>
 
 #include "mpecallhandling.h"
+#include "mpecallcontrolif.h" 
 
 // CONSTANTS
 const TInt KModeNormal = 0;  // Normal System mode  
@@ -38,21 +39,6 @@
 _LIT( KPEValidDTMFChars, "0123456789*#pwPW" );
 _LIT( KPEValidDTMFStringStopChars, "+pPwW" );
 
-// DTMF Speed dial substitution
-_LIT( KPEValidSpeedDialChars, "23456789" );
-const TInt KPEDtmfSpeedDialSubstitutionsMax = 2; // prevent infinite loop.
-const TInt KPESpeedDialIndexMin = 2;
-const TInt KPESpeedDialIndexMax = 9;
-
-// DTMF parsing status for Speed dial location
-enum TPESpeedDialSubstituionStatus
-    {
-    EPEDtmfSpeedDialOk,
-    EPEDtmfSpeedDialPromptUser,
-    EPEDtmfSpeedDialNotAssigned,
-    EPEDtmfSpeedDialInvalidSpeedDial
-    };
-
 // Invalid characters in an dialing string, these chars can be removed from dial string
 _LIT( KPECharsThatCanBeDelete, "\"/ ().-" );
 
@@ -104,7 +90,10 @@
 *  @lib phoneenginebase.dll
 *  @since S60_5.0
 */
-NONSHARABLE_CLASS( CPEMessageHandler ) : public CBase
+NONSHARABLE_CLASS( CPEMessageHandler ) 
+    : 
+        public CBase, 
+        public MPECallControlIF
     {
     public:  // Destructor
 
@@ -167,13 +156,7 @@
         * @return Return possible error code.
         */
         TInt HandleReleaseCall( TPEHangUpOptions aAutoResumeOption = ETPEHangUpDefault );
-        
-		/**
-        * Handles release message from application 
-        * @return Return possible error code.
-        */
-        TInt HandleReleaseConference();
-        
+
         /**
         * Handles send dtmf message from phone application 
         * @return possible error code from the CallHandling subsystem.
@@ -253,12 +236,6 @@
                                            const TBool aCheckForDelete ) const;
 
         /**
-        * Handles lifetimer data from customa api -> engineinfo.
-        * @return TInt possible error code..
-        */
-        TInt HandleGetLifeTimerData() const;
-
-        /**
         * Handles EPEMessageDTMFSent message from call handling subsystem
         * @param ECCPErrorNone or KPEDontSendMessage
         */
@@ -282,12 +259,6 @@
         * @return error code.
         */
         static TInt CallBackHandleSendDtmf( TAny* aAny );
-
-        /**
-        * Handles plus (+) sign in a DTMF string.
-        * @param aDtmfString Current DTMF string to process.
-        */
-        void HandlePlusSignInDtmf( const TPEDtmfString& aDtmfString );
         
         /**
         * Called asyncronously from callback.
@@ -572,6 +543,11 @@
         TInt HandleReplaceActive();
         
         /**
+        * Check if phone is locked, if locked leave with ECCPErrorAuthenticationFailed error.
+        */
+        void CheckIfPhoneIsLockedL();
+        
+        /**
          * Handles unattended transfer request response.
          * @param    aAcceptRequest     ETrue to accept, EFalse to reject request.
          */
@@ -593,14 +569,27 @@
         * Handle disable service
         */     
         void HandleDisableService();
-        
+
         /**
         * Adds SIM rejected MO CS call to logs. 
         * @param aCallId is the identification number of the call.   
         * @return KErrNone if succesfull
         */
         TInt AddSIMRejectedMoCsCallToLog( const TInt aCallId );
-   
+
+        /**
+        * Handle dial service call
+        */ 
+        TInt HandleDialServiceCall(
+            const TBool aClientCall );
+        
+        /**
+        * Returns a boolean to indicate whether network connection 
+        * is allowed or not.  
+        * @return Return a True or False. 
+        */
+        TBool IsNetworkConnectionAllowed() const;
+    
     private: // New functions
         
         /**
@@ -646,12 +635,6 @@
         TBool AutomaticAnswer( const TInt aCallId ) const;
 
         /**
-        * Returns a boolean to indicate whether emergency call is allowed or not.  
-        * @return Return a True or False. 
-        */
-        TBool IsEmergencyAllowed() const;
-
-        /**
         * Handle Client Call Data.
         * @return Return possible error.
         */
@@ -765,7 +748,7 @@
         * @param aClientCall, Informs is the current call client originated or not.
         * @return Return possible error code.
         */
-        TInt HandleDialCallL( const TBool aClientCall );      
+        TInt HandleDialCallL( const TBool aClientCall );
 
         /**
         * Reset CCCECallParameters to prevent of use a previous callīs parameters
@@ -836,14 +819,11 @@
         TBool iEmergencyCallActive;
         //
         TBool iBtaaDisconnected;
-		// Flag to associate switch to vid/voice call operation and video call's reconnect operation.
-		// Use to fetch the right SwitchToNumber.
-        TBool iSwitchToVidCalReconFlag;
         //Client Information, member variable because emergency call from phone client
         //is not allowed to allocate memory. 
         CPEClientInformation* iClientInformation;
-		// Dial Data
-		CPhCltDialData* iClientDialData;
+        // Dial Data
+        CPhCltDialData* iClientDialData;
         // Instances will contain the results of the parsing
         CPhoneGsmParserResult* iResult;
         // Handles emergency number from the parser.