phoneapp/phoneuistates/inc/cphonetwosingles.h
changeset 0 5f000ab63145
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 *     Two single call state implementation.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CPHONETWOSINGLES_H
       
    21 #define CPHONETWOSINGLES_H
       
    22 
       
    23 // INCLUDES
       
    24 #include "cphonegsmincall.h"
       
    25 #include "tphonecmdparamboolean.h"
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 
       
    29 // CLASS DECLARATION
       
    30 /**
       
    31 *  Two single call state implementation.
       
    32 */
       
    33 class CPhoneTwoSingles : public CPhoneGsmInCall
       
    34     {
       
    35     public:  
       
    36 
       
    37         /**
       
    38         * Destructor.
       
    39         */
       
    40         IMPORT_C virtual ~CPhoneTwoSingles();
       
    41 
       
    42         /**
       
    43         * Creates the Two Singles 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 CPhoneTwoSingles* NewL( 
       
    49             MPhoneStateMachine* aStateMachine, 
       
    50             MPhoneViewCommandHandle* aViewCommandHandle,
       
    51             MPhoneCustomization* aPhoneCustomization );
       
    52 
       
    53         /**
       
    54         * A message handling function for Phone Engine messages
       
    55         * @param aMessage Message from Phone Engine
       
    56         * @param aCallId Call id the message concerns
       
    57         */
       
    58         IMPORT_C virtual void HandlePhoneEngineMessageL(
       
    59             const TInt aMessage, 
       
    60             TInt aCallId );    
       
    61             
       
    62         IMPORT_C void HandleKeyMessageL(
       
    63             TPhoneKeyEventMessages aMessage,
       
    64             TKeyCode aCode );
       
    65             
       
    66     protected:
       
    67 
       
    68         /**
       
    69         * By default EPOC constructor is private.
       
    70         */
       
    71         IMPORT_C CPhoneTwoSingles( 
       
    72             MPhoneStateMachine* aStateMachine, 
       
    73             MPhoneViewCommandHandle* aViewCommandHandle,
       
    74             MPhoneCustomization* aPhoneCustomization );
       
    75         
       
    76         /**
       
    77         * ConstructL()
       
    78         */
       
    79         IMPORT_C virtual void ConstructL();
       
    80       
       
    81         /** 
       
    82         * Handle state-specific behaviour when number entry is cleared
       
    83         */ 
       
    84         IMPORT_C virtual void HandleNumberEntryClearedL();
       
    85         
       
    86         IMPORT_C virtual void OpenMenuBarL();
       
    87         
       
    88         IMPORT_C virtual void HandleConnectedConferenceL( TInt aCallId );
       
    89         
       
    90         IMPORT_C virtual void UpdateInCallCbaL();
       
    91         
       
    92         
       
    93     private:     
       
    94          
       
    95         void HandleIdleL( TInt aCallId );
       
    96           
       
    97         void HandleConnectedL( TInt aCallId );
       
    98         
       
    99         void HandleHeldL( TInt aCallId );
       
   100                 
       
   101         void HandleIncomingL( TInt aCallId );
       
   102         
       
   103         void DisplayIncomingCallL( 
       
   104             TInt aCallId, 
       
   105             const TPhoneCmdParamBoolean aCommandParam );  
       
   106         
       
   107     };
       
   108 
       
   109 #endif // CPHONETWOSINGLES_H
       
   110 
       
   111 // End of File