phoneengine/audiohandling/inc/cpeaudioroutingmonitor.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 CPEAudioRoutingMonitor class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPEAUDIOROUTINGMONITOR_H
       
    20 #define CPEAUDIOROUTINGMONITOR_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <MTelephonyAudioRoutingObserver.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 CPEAudioRoutingMonitor : public CBase, 
       
    38                                public MTelephonyAudioRoutingObserver
       
    39     {
       
    40     public:
       
    41 
       
    42         /**
       
    43         * Two-phased constructor.
       
    44         */
       
    45         static CPEAudioRoutingMonitor* NewL( CPEAudioData& aOwner );
       
    46         
       
    47         /**
       
    48         * Destructor.
       
    49         */
       
    50         ~CPEAudioRoutingMonitor();
       
    51 
       
    52     private:
       
    53 
       
    54         /**
       
    55         * C++ default constructor.
       
    56         */
       
    57         CPEAudioRoutingMonitor( CPEAudioData& aOwner );
       
    58 
       
    59     public: // Methods from MTelephonyAudioRoutingObserver
       
    60 
       
    61         /**
       
    62         * Available audio outputs have changed.
       
    63         * @since Series 60 3.0
       
    64         * @param ?arg1 ?description
       
    65         * @return ?description
       
    66         */
       
    67         void AvailableOutputsChanged( 
       
    68             CTelephonyAudioRouting& aTelephonyAudioRouting );
       
    69         
       
    70         /**
       
    71         * Current output has changed.
       
    72         * @since Series 60 3.0
       
    73         * @param ?arg1 ?description
       
    74         * @return ?description
       
    75         */
       
    76         void OutputChanged( CTelephonyAudioRouting& aTelephonyAudioRouting );
       
    77         
       
    78         /**
       
    79         * Completion message for SetOutput request.
       
    80         * @since Series 60 3.0
       
    81         * @param ?arg1 ?description
       
    82         * @return ?description
       
    83         */
       
    84         void SetOutputComplete( CTelephonyAudioRouting& aTelephonyAudioRouting, 
       
    85                                 TInt aError );
       
    86                        
       
    87     private: 
       
    88     
       
    89         // Owner of this object
       
    90         CPEAudioData& iOwner;
       
    91     };
       
    92 
       
    93 #endif // CPEAUDIOROUTINGMONITOR_H
       
    94 
       
    95 // End of File