phoneapp/phoneuistates/inc/cphoneconference.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 call state implementation.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CPHONECONFERENCE_H
       
    21 #define CPHONECONFERENCE_H
       
    22 
       
    23 // INCLUDES
       
    24 #include "cphonegsmincall.h"
       
    25 #include "tphonecmdparamboolean.h"
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 
       
    29 // CLASS DECLARATION
       
    30 /**
       
    31 *  Conference call state implementation.
       
    32 */
       
    33 class CPhoneConference : public CPhoneGsmInCall
       
    34     {
       
    35     public:  
       
    36 
       
    37         /**
       
    38         * Destructor.
       
    39         */
       
    40         virtual ~CPhoneConference();
       
    41 
       
    42         /**
       
    43         * Creates the Conference Call state class
       
    44         * @param aStateMachine: a container of state objects
       
    45         * @param aViewCommandHandle: handle to the PhoneUIView
       
    46         * @return an instance of class CPhoneStateIncoming
       
    47         */
       
    48         static CPhoneConference* NewL( 
       
    49             MPhoneStateMachine* aStateMachine, 
       
    50             MPhoneViewCommandHandle* aViewCommandHandle,
       
    51             MPhoneCustomization* aPhoneCustomization );
       
    52 
       
    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         virtual TBool HandleCommandL( TInt aCommand );  
       
    64         
       
    65         virtual void HandleKeyMessageL(
       
    66             TPhoneKeyEventMessages aMessage,
       
    67             TKeyCode aCode );
       
    68             
       
    69     protected:
       
    70 
       
    71         /**
       
    72         * By default EPOC constructor is private.
       
    73         */
       
    74         CPhoneConference( 
       
    75             MPhoneStateMachine* aStateMachine, 
       
    76             MPhoneViewCommandHandle* aViewCommandHandle,
       
    77             MPhoneCustomization* aPhoneCustomization );
       
    78         
       
    79         /**
       
    80         * ConstructL()
       
    81         */
       
    82         virtual void ConstructL();
       
    83         
       
    84         virtual void HandleKeyEventL( 
       
    85             const TKeyEvent& aKeyEvent, 
       
    86             TEventCode aEventCode );
       
    87             
       
    88         virtual void HandleNumberEntryClearedL();
       
    89         
       
    90         virtual void OpenMenuBarL();
       
    91 
       
    92         virtual void HandleIdleL( TInt aCallId );
       
    93         
       
    94         virtual void MakeStateTransitionToSingleL();
       
    95 
       
    96         virtual void HandleIncomingL( TInt aCallId );
       
    97 
       
    98         virtual void DisplayIncomingCallL( 
       
    99             TInt aCallId, 
       
   100             const TPhoneCmdParamBoolean aCommandParam );
       
   101         
       
   102         virtual void HandleConferenceIdleL();
       
   103                         
       
   104         virtual void MakeStateTransitionToTwoSinglesL();
       
   105 
       
   106         virtual void DisplayCallSetupL( TInt aCallId );
       
   107         
       
   108         virtual TBool IsConferenceBubbleInSelectionMode() const;
       
   109         
       
   110         virtual void UpdateInCallCbaL();
       
   111         
       
   112         void CloseSelectionListL();
       
   113         
       
   114         virtual void SetHoldFlagL();
       
   115         
       
   116         virtual void DefineAndSetHoldFlagL();
       
   117   
       
   118         virtual void HandleCreateNumberEntryL( 
       
   119             const TKeyEvent& aKeyEvent,
       
   120             TEventCode aEventCode );
       
   121 
       
   122         void UpdateConferenceSecurityStatusL( TInt aCallId );
       
   123         
       
   124         
       
   125      private:
       
   126               
       
   127         void OpenParticipantsListL();
       
   128      
       
   129         void HandleHeldConferenceL( TInt aCallId );
       
   130          
       
   131         void HandleConnectedConferenceL();
       
   132 
       
   133         void ToggleHoldL();
       
   134 
       
   135         void OpenDropParticipantSelectionL();
       
   136         
       
   137         void DropSelectedParticipantL();
       
   138         
       
   139         void OpenPrivateSelectionL();
       
   140         
       
   141         void PrivateSelectedParticipantL();
       
   142         
       
   143         void MakeStateTransitionToIdleL();
       
   144         
       
   145         void HandleDiallingL( TInt aCallId );
       
   146               
       
   147         void CallFromNewCallQueryL();
       
   148         
       
   149         void HandleWentOneToOneL( TInt aCallId );
       
   150         
       
   151     };
       
   152 
       
   153 #endif // CPHONECONFERENCE_H
       
   154 
       
   155 // End of File