phoneapp/phoneuistates/inc/cphonealerting.h
changeset 0 5f000ab63145
child 50 377c906a8701
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2005 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: 
       
    15 *     GSM-specific alerting state implementation.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CPHONEALERTING_H
       
    21 #define CPHONEALERTING_H
       
    22 
       
    23 // INCLUDES
       
    24 #include "cphonegsmincall.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 
       
    28 // CLASS DECLARATION
       
    29 /**
       
    30 *  GSM-specific alerting state
       
    31 */
       
    32 class CPhoneAlerting : public CPhoneGsmInCall
       
    33     {
       
    34     public:  
       
    35 
       
    36         /**
       
    37         * Destructor.
       
    38         */
       
    39         IMPORT_C virtual ~CPhoneAlerting();
       
    40 
       
    41         /**
       
    42         * Creates the GSM-specific Single call state class
       
    43         * @param aStateMachine: a state machine
       
    44         * @param aViewCommandHandle: handle to the PhoneUIView
       
    45         * @return an instance of class CPhoneAlerting
       
    46         */
       
    47         static CPhoneAlerting* 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         IMPORT_C virtual void HandlePhoneEngineMessageL(
       
    58             const TInt aMessage, 
       
    59             TInt aCallId );
       
    60 
       
    61                   
       
    62     protected:
       
    63 
       
    64         /**
       
    65         * By default EPOC constructor is private.
       
    66         */
       
    67         IMPORT_C CPhoneAlerting( 
       
    68             MPhoneStateMachine* aStateMachine, 
       
    69             MPhoneViewCommandHandle* aViewCommandHandle,
       
    70             MPhoneCustomization* aPhoneCustomization );
       
    71         
       
    72         /**
       
    73         * ConstructL()
       
    74         */
       
    75         IMPORT_C virtual void ConstructL();
       
    76 
       
    77         /**
       
    78         * A message handling function for EPEMessageHandleConnected
       
    79         * @param aCallId: the call id of the call
       
    80         */
       
    81         IMPORT_C void HandleConnectedL( TInt aCallId );
       
    82         
       
    83         IMPORT_C virtual void HandleKeyMessageL(
       
    84             TPhoneKeyEventMessages aMessage,
       
    85             TKeyCode aCode );
       
    86 
       
    87         /**
       
    88         * Open menu bar
       
    89         */
       
    90         IMPORT_C virtual void OpenMenuBarL();
       
    91         
       
    92        /**
       
    93         * Handles user selected UI commands.
       
    94         * @param aCommand - selected command
       
    95         */
       
    96         IMPORT_C virtual TBool HandleCommandL( TInt aCommand );
       
    97  
       
    98         /**
       
    99         * Check is alerting call Video call
       
   100         */
       
   101         TBool IsVideoCallAlertingL();
       
   102                 
       
   103         /**
       
   104         * From CPhoneState.
       
   105         * Checks if call termination note should be shown.
       
   106         * @return ETrue show call termination note
       
   107         */
       
   108         IMPORT_C virtual TBool CheckIfShowCallTerminationNote();
       
   109         
       
   110         /**
       
   111         * A message handling function for EPEMessageDisconnecting
       
   112         * @param aCallId: the call id of the call
       
   113         */
       
   114         IMPORT_C void HandleDisconnectingL( TInt aCallId );
       
   115         
       
   116     private:
       
   117         
       
   118         /** 
       
   119          * Call identifier for a incoming call. 
       
   120          */
       
   121         TInt iIncomingCallId;
       
   122     };
       
   123 
       
   124 #endif // CPHONEALERTING_H
       
   125 
       
   126 // End of File