phoneapp/phoneuistates/inc/cphonesingleandalerting.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 *     GSM-specific Single and Alerting state implementation.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CPHONESINGLEANDALERTING_H
       
    21 #define CPHONESINGLEANDALERTING_H
       
    22 
       
    23 // INCLUDES
       
    24 #include "cphonealerting.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 
       
    28 // CLASS DECLARATION
       
    29 /**
       
    30 *  GSM-specific Single and Alerting state
       
    31 */
       
    32 class CPhoneSingleAndAlerting : public CPhoneAlerting
       
    33     {
       
    34     public:  
       
    35 
       
    36         /**
       
    37         * Destructor.
       
    38         */
       
    39         virtual ~CPhoneSingleAndAlerting();
       
    40 
       
    41         /**
       
    42         * Creates the GSM-specific Single call state class
       
    43         * @param aStateMachine: a state machine
       
    44         * @param aViewCommandHandle: handle to the PhoneUIView
       
    45         * @return an instance of class CPhoneSingleAndAlerting
       
    46         */
       
    47         static CPhoneSingleAndAlerting* NewL( 
       
    48             MPhoneStateMachine* aStateMachine, 
       
    49             MPhoneViewCommandHandle* aViewCommandHandle,
       
    50             MPhoneCustomization* aPhoneCustomization );
       
    51         
       
    52         virtual void HandleKeyMessageL(
       
    53             TPhoneKeyEventMessages aMessage,
       
    54             TKeyCode aCode );
       
    55 
       
    56         /**
       
    57         * A message handling function for Phone Engine messages
       
    58         * @param aMessage Message from Phone Engine
       
    59         * @param aCallId Call id the message concerns
       
    60         */
       
    61         virtual void HandlePhoneEngineMessageL(
       
    62             const TInt aMessage, 
       
    63             TInt aCallId );       
       
    64         
       
    65         
       
    66     protected:
       
    67 
       
    68         /**
       
    69         * By default EPOC constructor is private.
       
    70         */
       
    71         CPhoneSingleAndAlerting( 
       
    72             MPhoneStateMachine* aStateMachine, 
       
    73             MPhoneViewCommandHandle* aViewCommandHandle,
       
    74             MPhoneCustomization* aPhoneCustomization );
       
    75         
       
    76         /**
       
    77         * ConstructL()
       
    78         */
       
    79         virtual void ConstructL();
       
    80             
       
    81         /**
       
    82         * A message handling function for EPEMessageHandleConnected
       
    83         * @param aCallId: the call id of the call
       
    84         */
       
    85         void HandleConnectedL( TInt aCallId );
       
    86         
       
    87         /**
       
    88         * Handle EPEMessageIdle
       
    89         */
       
    90         void HandleIdleL( TInt aCallId );
       
    91         
       
    92         /**
       
    93         * Open menu bar
       
    94         */
       
    95         virtual void OpenMenuBarL();
       
    96         /**
       
    97         * Update InCallCba 
       
    98         */
       
    99         virtual void UpdateInCallCbaL();
       
   100         
       
   101     };
       
   102 
       
   103 #endif // CPhoneSingleAndAlerting_H
       
   104 
       
   105 // End of File