phoneapp/phoneuistates/inc/cphonecallsetupandwaiting.h
changeset 0 5f000ab63145
child 14 24062c24fe38
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 *     Call Setup And Waiting state implementation.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CPHONECALLSETUPANDWAITING_H
       
    21 #define CPHONECALLSETUPANDWAITING_H
       
    22 
       
    23 // INCLUDES
       
    24 #include "cphonegsmincall.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 
       
    28 // CLASS DECLARATION
       
    29 /**
       
    30 *  Call Setup And Waiting state
       
    31 */
       
    32 class CPhoneCallSetupAndWaiting : public CPhoneGsmInCall
       
    33     {
       
    34     public:  
       
    35 
       
    36         /**
       
    37         * Destructor.
       
    38         */
       
    39         virtual ~CPhoneCallSetupAndWaiting();
       
    40 
       
    41     public: // New functions
       
    42         
       
    43         /**
       
    44         * Creates the Call Setup And Waiting state class
       
    45         * @param aStateMachine: a state machine
       
    46         * @param aViewCommandHandle: handle to the PhoneUIView
       
    47         * @return an instance of class CPhoneSingleAndAlerting
       
    48         */
       
    49         static CPhoneCallSetupAndWaiting* NewL( 
       
    50             MPhoneStateMachine* aStateMachine, 
       
    51             MPhoneViewCommandHandle* aViewCommandHandle,
       
    52             MPhoneCustomization* aPhoneCustomization );
       
    53 
       
    54         /**
       
    55         * A message handling function for Phone Engine messages
       
    56         * @param aMessage Message from Phone Engine
       
    57         * @param aCallId Call id the message concerns
       
    58         */
       
    59         virtual void HandlePhoneEngineMessageL(
       
    60             const TInt aMessage, 
       
    61             TInt aCallId );       
       
    62         
       
    63     protected:
       
    64 
       
    65         /**
       
    66         * By default EPOC constructor is private.
       
    67         */
       
    68         CPhoneCallSetupAndWaiting( 
       
    69             MPhoneStateMachine* aStateMachine, 
       
    70             MPhoneViewCommandHandle* aViewCommandHandle,
       
    71             MPhoneCustomization* aPhoneCustomization );
       
    72         
       
    73         /**
       
    74         * ConstructL()
       
    75         */
       
    76         virtual void ConstructL();
       
    77             
       
    78         /**
       
    79         * Open menu bar
       
    80         */
       
    81         virtual void OpenMenuBarL();
       
    82         
       
    83         virtual void UpdateInCallCbaL();
       
    84         
       
    85     private:
       
    86         
       
    87         void HandleIdleL( TInt aCallId );
       
    88         
       
    89         /**
       
    90         * Handles EPEMessageConnected
       
    91         */
       
    92         void HandleConnectedL( TInt aCallId );
       
    93         
       
    94     };
       
    95 
       
    96 #endif // CPHONECALLSETUPANDWAITING_H
       
    97 
       
    98 // End of File