phoneapp/phoneuicontrol/inc/cphonestateidle.h
branchGCC_SURGE
changeset 51 f39ed5e045e0
parent 21 92ab7f8d0eab
parent 45 6b911d05207e
equal deleted inserted replaced
40:bab96b7ed1a4 51:f39ed5e045e0
    20 #ifndef CPHONESTATEIDLE
    20 #ifndef CPHONESTATEIDLE
    21 #define CPHONESTATEIDLE
    21 #define CPHONESTATEIDLE
    22 
    22 
    23 // INCLUDES
    23 // INCLUDES
    24 #include "cphonestate.h"
    24 #include "cphonestate.h"
    25 #include "tphonecmdparamspeeddial.h"
       
    26 
    25 
    27 // FORWARD DECLARATIONS
    26 // FORWARD DECLARATIONS
    28 
    27 
    29 // CLASS DECLARATION
    28 // CLASS DECLARATION
    30 
    29 
    47         /** Dial is initiated by one key dialing. */
    46         /** Dial is initiated by one key dialing. */
    48         EDialMethodOneKeyDialing    = 3
    47         EDialMethodOneKeyDialing    = 3
    49 
    48 
    50         };
    49         };
    51     
    50     
       
    51     /**
       
    52     * Phone number types
       
    53     *
       
    54     * EPhoneNumberTypeNotFound - phone number's type was not found
       
    55     * EPhoneNumberTypeCS - CS call can be made to the phone number
       
    56     * EPhoneNumberTypeVideo - video call can be made to the phone number
       
    57     * EPhoneNumberTypeVoip - VoIP call can be made to the address.
       
    58     */
       
    59     enum TPhoneNumberType
       
    60         {
       
    61         EPhoneNumberTypeNotFound = -1,
       
    62         EPhoneNumberTypeCS = 0,
       
    63         EPhoneNumberTypeVideo,
       
    64         EPhoneNumberTypeVoip
       
    65         };
       
    66     
    52         /**
    67         /**
    53         * Destructor.
    68         * Destructor.
    54         */
    69         */
    55         IMPORT_C virtual ~CPhoneStateIdle();
    70         IMPORT_C virtual ~CPhoneStateIdle();
    56 
    71 
   168         /**
   183         /**
   169         * A message handling function for EPEMessageDialling
   184         * A message handling function for EPEMessageDialling
   170         * @param aCallId: the call id of the call
   185         * @param aCallId: the call id of the call
   171         */
   186         */
   172         IMPORT_C virtual void HandleDialingL( TInt aCallId );
   187         IMPORT_C virtual void HandleDialingL( TInt aCallId );
   173 
       
   174         /**
       
   175         * This is called when Speed Dial dialog is cancelled or user didn't give
       
   176         * a valid number.
       
   177         * @param aDigit: entered digit
       
   178         */
       
   179         IMPORT_C void SpeedDialCanceledL( const TUint& aDigit );
       
   180         
       
   181         /**
       
   182         * Handle long key press of a number.
       
   183         */
       
   184         IMPORT_C void HandleNumberLongKeyPressL();
       
   185         
       
   186         /**
       
   187         * Tests whether given number is speed dial number.
       
   188         * @param    aNumber    A number to test.
       
   189         * @return   ETrue if given number is speed dial number.
       
   190         */
       
   191         IMPORT_C TBool IsSpeedDialNumber( const TDesC& aNumber ) const;
       
   192         
       
   193         /**
       
   194         * Handles speed dialing.
       
   195         * @param aDigit             Entered digit.
       
   196         * @param aDialMethod        Dial initiation method.
       
   197         */
       
   198         IMPORT_C void SpeedDialL( const TUint& aDigit, 
       
   199             TDialInitiationMethod aDialMethod );
       
   200 
   188 
   201         /**
   189         /**
   202         * Handles send command.
   190         * Handles send command.
   203         */
   191         */
   204         IMPORT_C virtual void HandleSendCommandL();
   192         IMPORT_C virtual void HandleSendCommandL();
   269          * @param aCode key code.
   257          * @param aCode key code.
   270          * @return ETrue if configuration found.
   258          * @return ETrue if configuration found.
   271          */        
   259          */        
   272          TBool CheckAppLaunchingL( const TKeyCode aCode );
   260          TBool CheckAppLaunchingL( const TKeyCode aCode );
   273 
   261 
   274          /**
   262          void HandleVoiceCallCommandL();
   275           * Returns phone number for specified speed dial location.
       
   276           * @param  aDigit Speed dial digit.
       
   277           * @param  aDigit On return contains speed dial parameters.
       
   278           * @return Phone number
       
   279           */   
       
   280          HBufC* NumberForSpeedDialLocationL( const TUint& aDigit,
       
   281              TPhoneCmdParamSpeedDial& aSpeedDialParam ) const;
       
   282 
       
   283          void HandleVoiceCallCommandL( TBool aSendKey );
       
   284          
   263          
   285     private:
   264     private:
   286     
   265     
   287         // Owned profile engine
   266         // Owned profile engine
   288         MProfileEngine* iEngine;
   267         MProfileEngine* iEngine;