phoneapp/phoneuistates/inc/cphonegsmincall.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 04 Oct 2010 00:16:48 +0300
changeset 77 2be0b271d017
parent 37 ba76fc04e6c2
permissions -rw-r--r--
Revision: 201037 Kit: 201039

/*
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  GSM-specific in-call handling.
*
*/


#ifndef CPHONEGSMINCALL_H
#define CPHONEGSMINCALL_H

// INCLUDES
#include "cphonestateincall.h"
#include "tphonecmdparamboolean.h"

// FORWARD DECLARATIONS

// CLASS DECLARATION
/**
*  GSM-specific in-call handling.
*/
class CPhoneGsmInCall : public CPhoneStateInCall
    {
    public:  

        /**
        * Destructor.
        */
        virtual ~CPhoneGsmInCall();
        
        /**
        * Creates the GSM in-call state class
        * @param aStateMachine: a state machine
        * @param aViewCommandHandle: handle to the PhoneUIView
        * @return an instance of class CPhoneEmergency
        */
        static CPhoneGsmInCall* NewL( 
            MPhoneStateMachine* aStateMachine, 
            MPhoneViewCommandHandle* aViewCommandHandle,
            MPhoneCustomization* aPhoneCustomization );

        /**
        * A message handling function for Phone Engine messages
        * @param aMessage Message from Phone Engine
        * @param aCallId Call id the message concerns
        */
        void HandlePhoneEngineMessageL(
            const TInt aMessage, 
            TInt aCallId );

    protected:  

        /**
        * By default EPOC constructor is private.
        */
        CPhoneGsmInCall( 
            MPhoneStateMachine* aStateMachine, 
            MPhoneViewCommandHandle* aViewCommandHandle,
            MPhoneCustomization* aPhoneCustomization );

        /**
        * Handles commands.
        * @param aCommand It is the code of the command to be handled.
        * @returns boolean value was the command handled by the state 
        *          (ETrue) or not (EFalse)
        */    
        IMPORT_C TBool HandleCommandL( TInt aCommand );    

        /**
        * ConstructL()
        */
        virtual void ConstructL();
        
        /**
        * Show Colp note if necessary
        */
        void HandleColpNoteL( TInt aCallId );
        
        /**
        * Bring call handling to foreground when moved to incoming state
        **/        
        void BringIncomingToForegroundL();

    private:
    
        void ReplaceCallL();

    };

#endif // CPHONEGSMINCALL_H

// End of File