phoneapp/phoneuivoipextension/inc/cphonestatealertingvoip.h
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2007 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 *     VoIP -specific Alerting state implementation.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CPHONESTATEALERTINGVOIP_H
       
    21 #define CPHONESTATEALERTINGVOIP_H
       
    22 
       
    23 // INCLUDES
       
    24 #include "cphonealerting.h"
       
    25 
       
    26 // CLASS DECLARATION
       
    27 /**
       
    28 *  VoIP -specific Alerting state
       
    29 */
       
    30 NONSHARABLE_CLASS( CPhoneStateAlertingVoIP ): public CPhoneAlerting
       
    31     {
       
    32     public:  
       
    33 
       
    34         /**
       
    35         * Destructor.
       
    36         */
       
    37         virtual ~CPhoneStateAlertingVoIP();
       
    38 
       
    39         /**
       
    40         * Creates the VoIP -specific Alerting state class
       
    41         * @param aStateMachine: a state machine
       
    42         * @param aViewCommandHandle: handle to the PhoneUIView
       
    43         * @return an instance of class CPhoneCallSetup
       
    44         */
       
    45         static CPhoneStateAlertingVoIP* NewL( 
       
    46             MPhoneStateMachine& aStateMachine, 
       
    47             MPhoneViewCommandHandle& aViewCommandHandle,
       
    48             MPhoneCustomization& aPhoneCustomization );
       
    49 
       
    50         /**
       
    51         * A message handling function for Phone Engine messages
       
    52         * @param aMessage Message from Phone Engine
       
    53         * @param aCallId Call id the message concerns
       
    54         */
       
    55         virtual void HandlePhoneEngineMessageL(
       
    56             const TInt aMessage, 
       
    57             TInt aCallId );       
       
    58 
       
    59           
       
    60     protected:
       
    61 
       
    62         /**
       
    63         * By default EPOC constructor is private.
       
    64         */
       
    65         CPhoneStateAlertingVoIP( 
       
    66             MPhoneStateMachine& aStateMachine, 
       
    67             MPhoneViewCommandHandle& aViewCommandHandle,
       
    68             MPhoneCustomization& aPhoneCustomization );
       
    69         
       
    70         /**
       
    71         * ConstructL()
       
    72         */
       
    73         virtual void ConstructL();
       
    74    
       
    75         
       
    76     private:
       
    77 
       
    78         /**
       
    79         * Handle EPEMessageConnected
       
    80         */
       
    81         void HandleConnectedL( TInt aCallId );
       
    82         
       
    83     };
       
    84 
       
    85 #endif // CPHONESTATEALERTINGVOIP_H
       
    86 
       
    87 // End of File