phoneengine/audiohandling/inc/cpecallaudioroutinghandler.h
changeset 0 5f000ab63145
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:  This file contains the header file of the CPECallAudioRoutingHandler class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPECALLAUDIOROUTINGHANDLER_H
       
    20 #define CPECALLAUDIOROUTINGHANDLER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24  
       
    25 // FORWARD DECLARATIONS
       
    26 class CPEAudioData;
       
    27 class CTelephonyAudioRouting;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  Monitors audio path selection
       
    33 *
       
    34 *  @lib audiohandling.lib
       
    35 *  @since Series60_4.0
       
    36 */  
       
    37 class CPECallAudioRoutingHandler : public CBase 
       
    38     {
       
    39     public:
       
    40 
       
    41         /**
       
    42         * Two-phased constructor.
       
    43         */
       
    44         static CPECallAudioRoutingHandler* NewL( CPEAudioData& aOwner );
       
    45         
       
    46         /**
       
    47         * Destructor.
       
    48         */
       
    49         ~CPECallAudioRoutingHandler();
       
    50 
       
    51     private:
       
    52 
       
    53         /**
       
    54         * C++ default constructor.
       
    55         */
       
    56         CPECallAudioRoutingHandler( CPEAudioData& aOwner );
       
    57 
       
    58     public:
       
    59     
       
    60         /**
       
    61         * Audio output is set.
       
    62         * @since Series 60 3.0
       
    63         * @param ?arg1 ?description
       
    64         * @return ?description
       
    65         */
       
    66         TInt HandleAudioRoutingCallInit( TBool aVideoCall );
       
    67         /**
       
    68         * Available audio outputs have changed.
       
    69         * @since Series 60 3.0
       
    70         * @param ?arg1 ?description
       
    71         * @return ?description
       
    72         */
       
    73         TInt HandleAudioRoutingAvailableChanged();
       
    74         
       
    75         /**
       
    76         * Audio route preference value have changed.
       
    77         * @since Series 60 3.0
       
    78         * @param ?arg1 ?description
       
    79         * @return ?description
       
    80         */        
       
    81         TInt HandleAudioRoutePreferenceChanged();
       
    82         
       
    83         /**
       
    84         * Answer to handset operation status is updated.
       
    85         * @since Series 60 3.0
       
    86         * @param ?arg1 ?description
       
    87         * @return ?description
       
    88         */
       
    89         void SetAnswerToHandset( TBool aStatus );
       
    90         
       
    91     private: 
       
    92     
       
    93         // Owner of this object
       
    94         CPEAudioData& iOwner;
       
    95         
       
    96         // AnswerToHandset
       
    97         TBool iAnswerToHandset;
       
    98         
       
    99         // Video call status
       
   100         TBool iAnyVideoCall;
       
   101     };
       
   102 
       
   103 #endif // CPECALLAUDIOROUTINGHANDLER_H
       
   104 
       
   105 // End of File