phoneapp/phoneuistates/inc/cphonegsmincall.h
changeset 0 5f000ab63145
child 21 92ab7f8d0eab
child 58 40a3f856b14d
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  GSM-specific in-call handling.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPHONEGSMINCALL_H
       
    20 #define CPHONEGSMINCALL_H
       
    21 
       
    22 // INCLUDES
       
    23 #include "cphonestateincall.h"
       
    24 #include "tphonecmdparamboolean.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 
       
    28 // CLASS DECLARATION
       
    29 /**
       
    30 *  GSM-specific in-call handling.
       
    31 */
       
    32 class CPhoneGsmInCall : public CPhoneStateInCall
       
    33     {
       
    34     public:  
       
    35 
       
    36         /**
       
    37         * Destructor.
       
    38         */
       
    39         virtual ~CPhoneGsmInCall();
       
    40         
       
    41         /**
       
    42         * Creates the GSM in-call state class
       
    43         * @param aStateMachine: a state machine
       
    44         * @param aViewCommandHandle: handle to the PhoneUIView
       
    45         * @return an instance of class CPhoneEmergency
       
    46         */
       
    47         static CPhoneGsmInCall* NewL( 
       
    48             MPhoneStateMachine* aStateMachine, 
       
    49             MPhoneViewCommandHandle* aViewCommandHandle,
       
    50             MPhoneCustomization* aPhoneCustomization );
       
    51 
       
    52         /**
       
    53         * A message handling function for Phone Engine messages
       
    54         * @param aMessage Message from Phone Engine
       
    55         * @param aCallId Call id the message concerns
       
    56         */
       
    57         void HandlePhoneEngineMessageL(
       
    58             const TInt aMessage, 
       
    59             TInt aCallId );
       
    60 
       
    61     protected:  
       
    62 
       
    63         /**
       
    64         * By default EPOC constructor is private.
       
    65         */
       
    66         CPhoneGsmInCall( 
       
    67             MPhoneStateMachine* aStateMachine, 
       
    68             MPhoneViewCommandHandle* aViewCommandHandle,
       
    69             MPhoneCustomization* aPhoneCustomization );
       
    70 
       
    71         /**
       
    72         * Handles commands.
       
    73         * @param aCommand It is the code of the command to be handled.
       
    74         * @returns boolean value was the command handled by the state 
       
    75         *          (ETrue) or not (EFalse)
       
    76         */    
       
    77         IMPORT_C TBool HandleCommandL( TInt aCommand );    
       
    78 
       
    79         /**
       
    80         * ConstructL()
       
    81         */
       
    82         virtual void ConstructL();
       
    83         
       
    84         /**
       
    85         * Show Colp note if necessary
       
    86         */
       
    87         void HandleColpNoteL( TInt aCallId );
       
    88         
       
    89         /**
       
    90         * Bring call handling to foreground when moved to incoming state
       
    91         **/        
       
    92         void BringIncomingToForegroundL();
       
    93        
       
    94         /**
       
    95         * Get allow waiting call header value.
       
    96         */
       
    97         void AllowShowingOfWaitingCallHeaderL( 
       
    98             TPhoneCmdParamBoolean& aCommandParam );
       
    99         
       
   100         /**
       
   101         * Indicates when the Phone app is in the foreground.
       
   102         */    
       
   103         IMPORT_C void HandlePhoneForegroundEventL();
       
   104         
       
   105         /**
       
   106         * Show hold/connected note 
       
   107         */
       
   108         void HandleHoldNoteL( TInt aCallId, TBool aHold );
       
   109         
       
   110         
       
   111         /**
       
   112         * Setter for divert indication showing in bubble.
       
   113         * @param aDivertIndication ETrue to show divert indication,
       
   114         *        EFalse to not. Usually setting EFalse isn't necessary
       
   115         *        as it's a default value in bubble creation.
       
   116         */
       
   117         IMPORT_C void SetDivertIndication(
       
   118             const TBool aDivertIndication );
       
   119         
       
   120     private:
       
   121     
       
   122     	void ReplaceCallL();
       
   123     	/**
       
   124         * Handles divert indication 
       
   125         */
       
   126     	void HandeDivertIndicationL();
       
   127     };
       
   128 
       
   129 #endif // CPHONEGSMINCALL_H
       
   130 
       
   131 // End of File