phoneapp/phoneuistates/inc/cphoneconferenceandwaiting.h
changeset 0 5f000ab63145
child 9 8871b09be73b
child 21 92ab7f8d0eab
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     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     protected:
       
    70 
       
    71         /**
       
    72         * By default EPOC constructor is private.
       
    73         */
       
    74         CPhoneConferenceAndWaiting( 
       
    75             MPhoneStateMachine* aStateMachine, 
       
    76             MPhoneViewCommandHandle* aViewCommandHandle,
       
    77             MPhoneCustomization* aPhoneCustomization );
       
    78         
       
    79         /**
       
    80         * ConstructL()
       
    81         */
       
    82         virtual void ConstructL();
       
    83         
       
    84         virtual void OpenMenuBarL();
       
    85         
       
    86         virtual void UpdateInCallCbaL();
       
    87         
       
    88         
       
    89      private:
       
    90      
       
    91          void HandleConnectedL( TInt aCallId );
       
    92          
       
    93          void HandleIdleL( TInt aCallId );
       
    94          
       
    95          void HandleConferenceIdleL();
       
    96                   
       
    97          void MakeStateTransitionToConferenceAndSingleL( TInt aCallId );
       
    98          
       
    99          void HandleDiallingL( TInt aCallId );
       
   100          
       
   101          void HandleWentOneToOneL( TInt aCallId );
       
   102       
       
   103      private:
       
   104         TInt iRingingCallId;
       
   105          
       
   106     };
       
   107 
       
   108 #endif // CPHONECONFERENCEANDWAITING_H
       
   109 
       
   110 // End of File