phoneapp/phoneuistates/inc/cphoneconferenceandwaiting.h
changeset 37 ba76fc04e6c2
child 50 377c906a8701
child 51 f39ed5e045e0
equal deleted inserted replaced
36:2eacb6118286 37:ba76fc04e6c2
       
     1 /*
       
     2 * Copyright (c) 2005-2008 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 call state implementation.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CPHONECONFERENCEANDWAITING_H
       
    21 #define CPHONECONFERENCEANDWAITING_H
       
    22 
       
    23 // INCLUDES
       
    24 #include "cphoneconference.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 
       
    28 // CLASS DECLARATION
       
    29 /**
       
    30 *  Conference and waiting call state implementation.
       
    31 */
       
    32 class CPhoneConferenceAndWaiting : public CPhoneConference
       
    33     {
       
    34     public:  
       
    35 
       
    36         /**
       
    37         * Destructor.
       
    38         */
       
    39         virtual ~CPhoneConferenceAndWaiting();
       
    40 
       
    41         /**
       
    42         * Creates the Conference And Waiting 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 CPhoneConferenceAndWaiting* 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 void HandleKeyMessageL(
       
    62             TPhoneKeyEventMessages aMessage,
       
    63             TKeyCode aCode );
       
    64             
       
    65         virtual void HandleKeyEventL(
       
    66             const TKeyEvent& aKeyEvent,
       
    67             TEventCode aEventCode );
       
    68 
       
    69         /**
       
    70         * Handles user selected UI commands.
       
    71         * @param aCommand - selected command
       
    72         */    
       
    73         TBool HandleCommandL( TInt aCommand );
       
    74 
       
    75     protected:
       
    76 
       
    77         /**
       
    78         * By default EPOC constructor is private.
       
    79         */
       
    80         CPhoneConferenceAndWaiting( 
       
    81             MPhoneStateMachine* aStateMachine, 
       
    82             MPhoneViewCommandHandle* aViewCommandHandle,
       
    83             MPhoneCustomization* aPhoneCustomization );
       
    84         
       
    85         /**
       
    86         * ConstructL()
       
    87         */
       
    88         virtual void ConstructL();
       
    89         
       
    90         virtual void OpenMenuBarL();
       
    91         
       
    92         virtual void UpdateInCallCbaL();
       
    93         
       
    94         
       
    95      private:
       
    96      
       
    97          void HandleConnectedL( TInt aCallId );
       
    98          
       
    99          void HandleIdleL( TInt aCallId );
       
   100          
       
   101          void HandleConferenceIdleL();
       
   102                   
       
   103          void MakeStateTransitionToConferenceAndSingleL( TInt aCallId );
       
   104          
       
   105          void HandleDiallingL( TInt aCallId );
       
   106          
       
   107          void HandleWentOneToOneL( TInt aCallId );
       
   108          
       
   109          /**
       
   110           *  Handles received EPhoneCmdUpdateUiControls command.
       
   111           */
       
   112          void UpdateUiControlsL();
       
   113       
       
   114      private:
       
   115         TInt iRingingCallId;
       
   116          
       
   117     };
       
   118 
       
   119 #endif // CPHONECONFERENCEANDWAITING_H
       
   120 
       
   121 // End of File