phoneapp/phoneuistates/inc/cphoneconferenceandwaitingandcallsetup.h
changeset 37 ba76fc04e6c2
child 50 377c906a8701
child 51 f39ed5e045e0
equal deleted inserted replaced
36:2eacb6118286 37:ba76fc04e6c2
       
     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: 
       
    15 *     Conference and waiting and call setup state implementation.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CPHONECONFERENCEANDWAITINGANDCALLSETUP_H
       
    21 #define CPHONECONFERENCEANDWAITINGANDCALLSETUP_H
       
    22 
       
    23 // INCLUDES
       
    24 #include "cphoneconference.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 
       
    28 // CLASS DECLARATION
       
    29 /**
       
    30 *  Conference and waiting and call setup state implementation.
       
    31 */
       
    32 class CPhoneConferenceAndWaitingAndCallSetup : public CPhoneConference
       
    33     {
       
    34     public:  
       
    35 
       
    36         /**
       
    37         * Destructor.
       
    38         */
       
    39         virtual ~CPhoneConferenceAndWaitingAndCallSetup();
       
    40 
       
    41         /**
       
    42         * Creates the Conference And Waiting And Call Setup state class
       
    43         * @param aStateMachine: a container of state objects
       
    44         * @param aViewCommandHandle: handle to the PhoneUIView
       
    45         * @return an instance of class CPhoneStateIncoming
       
    46         */
       
    47         static CPhoneConferenceAndWaitingAndCallSetup* 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         virtual void HandlePhoneEngineMessageL(
       
    58             const TInt aMessage, 
       
    59             TInt aCallId );   
       
    60         
       
    61         virtual TBool HandleCommandL( TInt aCommand );  
       
    62         
       
    63         virtual void HandleKeyMessageL(
       
    64             TPhoneKeyEventMessages aMessage,
       
    65             TKeyCode aCode );
       
    66      
       
    67 
       
    68     protected:
       
    69 
       
    70         /**
       
    71         * By default EPOC constructor is private.
       
    72         */
       
    73         CPhoneConferenceAndWaitingAndCallSetup( 
       
    74             MPhoneStateMachine* aStateMachine, 
       
    75             MPhoneViewCommandHandle* aViewCommandHandle,
       
    76             MPhoneCustomization* aPhoneCustomization );
       
    77         
       
    78         /**
       
    79         * ConstructL()
       
    80         */
       
    81         virtual void ConstructL();
       
    82         
       
    83         virtual void OpenMenuBarL();        
       
    84 
       
    85         virtual void UpdateInCallCbaL();
       
    86         
       
    87         virtual void HandleConferenceIdleL();
       
    88         
       
    89         virtual void HandleIdleL( TInt aCallId );
       
    90         
       
    91         
       
    92      private:
       
    93 
       
    94         void HandleConnectingL( TInt aCallId );
       
    95         
       
    96         void HandleConnectedL( TInt aCallId );
       
    97         
       
    98         void UpdateConnectingCbaL();
       
    99         
       
   100      private:
       
   101          
       
   102          /**
       
   103          * Status of ConferenceAndWaitingAndCallSetup alerting
       
   104          */
       
   105          TBool iAlerting;
       
   106         
       
   107     };
       
   108 
       
   109 #endif // CPHONECONFERENCEANDWAITINGANDCALLSETUP_H
       
   110 
       
   111 // End of File