phoneengine/audiohandling/inc/cpecallaudioroutinghandler.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 12 Mar 2010 15:42:40 +0200
branchRCL_3
changeset 14 24062c24fe38
parent 0 5f000ab63145
permissions -rw-r--r--
Revision: 201007 Kit: 201008

/*
* Copyright (c) 2005 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:  This file contains the header file of the CPECallAudioRoutingHandler class.
*
*/


#ifndef CPECALLAUDIOROUTINGHANDLER_H
#define CPECALLAUDIOROUTINGHANDLER_H

// INCLUDES
#include <e32base.h>
 
// FORWARD DECLARATIONS
class CPEAudioData;
class CTelephonyAudioRouting;

// CLASS DECLARATION

/**
*  Monitors audio path selection
*
*  @lib audiohandling.lib
*  @since Series60_4.0
*/  
class CPECallAudioRoutingHandler : public CBase 
    {
    public:

        /**
        * Two-phased constructor.
        */
        static CPECallAudioRoutingHandler* NewL( CPEAudioData& aOwner );
        
        /**
        * Destructor.
        */
        ~CPECallAudioRoutingHandler();

    private:

        /**
        * C++ default constructor.
        */
        CPECallAudioRoutingHandler( CPEAudioData& aOwner );

    public:
    
        /**
        * Audio output is set.
        * @since Series 60 3.0
        * @param ?arg1 ?description
        * @return ?description
        */
        TInt HandleAudioRoutingCallInit( TBool aVideoCall );
        /**
        * Available audio outputs have changed.
        * @since Series 60 3.0
        * @param ?arg1 ?description
        * @return ?description
        */
        TInt HandleAudioRoutingAvailableChanged();
        
        /**
        * Audio route preference value have changed.
        * @since Series 60 3.0
        * @param ?arg1 ?description
        * @return ?description
        */        
        TInt HandleAudioRoutePreferenceChanged();
        
        /**
        * Answer to handset operation status is updated.
        * @since Series 60 3.0
        * @param ?arg1 ?description
        * @return ?description
        */
        void SetAnswerToHandset( TBool aStatus );
        
    private: 
    
        // Owner of this object
        CPEAudioData& iOwner;
        
        // AnswerToHandset
        TBool iAnswerToHandset;
        
        // Video call status
        TBool iAnyVideoCall;
    };

#endif // CPECALLAUDIOROUTINGHANDLER_H

// End of File