phoneapp/phoneuistates/inc/cphonesingleandcallsetup.h
changeset 36 2eacb6118286
parent 30 ebdbd102c78a
child 37 ba76fc04e6c2
equal deleted inserted replaced
30:ebdbd102c78a 36:2eacb6118286
     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 *     Call setup at single state implementation.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CPHONESINGLEANDCALLSETUP_H
       
    21 #define CPHONESINGLEANDCALLSETUP_H
       
    22 
       
    23 // INCLUDES
       
    24 #include "cphonecallsetup.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 
       
    28 // CLASS DECLARATION
       
    29 /**
       
    30 *  Call setup at single state implementation.
       
    31 */
       
    32 class CPhoneSingleAndCallSetup : public CPhoneCallSetup
       
    33     {
       
    34     public:  
       
    35 
       
    36         /**
       
    37         * Destructor.
       
    38         */
       
    39         virtual ~CPhoneSingleAndCallSetup();
       
    40 
       
    41     public:
       
    42         
       
    43         /**
       
    44         * Creates the Call Setup In Single state class
       
    45         * @param aStateMachine: a container of state objects
       
    46         * @param aViewCommandHandle: handle to the PhoneUIView
       
    47         * @return an instance of class CPhoneStateIncoming
       
    48         */
       
    49         static CPhoneSingleAndCallSetup* NewL( 
       
    50             MPhoneStateMachine* aStateMachine, 
       
    51             MPhoneViewCommandHandle* aViewCommandHandle,
       
    52             MPhoneCustomization* aPhoneCustomization );
       
    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 void HandleKeyMessageL(
       
    64             TPhoneKeyEventMessages aMessage,
       
    65             TKeyCode aCode );       
       
    66 
       
    67     protected:
       
    68 
       
    69         /**
       
    70         * By default EPOC constructor is private.
       
    71         */
       
    72         CPhoneSingleAndCallSetup( 
       
    73             MPhoneStateMachine* aStateMachine, 
       
    74             MPhoneViewCommandHandle* aViewCommandHandle,
       
    75             MPhoneCustomization* aPhoneCustomization );
       
    76         
       
    77         /**
       
    78         * ConstructL()
       
    79         */
       
    80         virtual void ConstructL();
       
    81         
       
    82      private:
       
    83           
       
    84         /**
       
    85         * Handle EPEMessageConnecting
       
    86         */
       
    87         void HandleConnectingL( TInt aCallId );
       
    88         
       
    89         /**
       
    90         * Handle EPEMessageConnected
       
    91         */
       
    92         void HandleConnectedL( TInt aCallId );
       
    93         
       
    94         /**
       
    95         * A message handling function for EPEMessageIdle
       
    96         * @param aCallId: the call id of the call
       
    97         */
       
    98         void HandleIdleL( TInt aCallId );
       
    99         
       
   100         TBool HandleCommandL( TInt aCommand );
       
   101         
       
   102     };
       
   103 
       
   104 #endif // CPHONESINGLEANDCALLSETUP_H
       
   105 
       
   106 // End of File