fmradio/fmradioengine/inc/fmradioenginedosserverobserver.h
branchRCL_3
changeset 20 93c594350b9a
parent 0 f3d95d9c00ab
equal deleted inserted replaced
19:cce62ebc198e 20:93c594350b9a
       
     1 /*
       
     2 * Copyright (c) 2003 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:  Contains implementation of the CDosServerObserver class. which is the 
       
    15 *                       notification interface to the DOS Server.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef __DOSSERVEROBSERVER_H
       
    20 #define __DOSSERVEROBSERVER_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <DosSvrServices.h>
       
    24 
       
    25 #include "fmradioengineradiosettings.h"
       
    26 
       
    27 class CRadioEngine;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 * This class implements theis the notification interface to the DOS Server.
       
    33 */
       
    34 class CDosServerObserver : public CDosEventListenerBase
       
    35     {
       
    36 	public:
       
    37 		virtual ~CDosServerObserver();
       
    38 		/**
       
    39 		* Two-phased class constructor.
       
    40 		* @param aEngine - pointer to the CRadioEngine instance (used for callbacks)
       
    41 		* @param aRadioSettings - pointer to the CRadioSettings class
       
    42 		* @return pointer to CDosServerObserver class instance
       
    43 		*/
       
    44 		static CDosServerObserver* NewL(CRadioEngine* aEngine, TRadioSettings* aRadioSettings);
       
    45 
       
    46         /**
       
    47         * Sets the current audio routing.
       
    48 		* @param aAudioOutput Audio output to be used
       
    49 		* @return Symbian error code
       
    50         */
       
    51  
       
    52         TInt SetAudioRouting(CRadioEngine::TFMRadioAudioOutput aAudioOutput);
       
    53 	
       
    54 		/**
       
    55 		* From CDosEventListenerBase 
       
    56 		* It notifies about a headset button state change
       
    57 		* @param aState State of button
       
    58 		*/
       
    59 		void HeadsetButtonChangedL(EPSButtonState aState);
       
    60 
       
    61 	private:
       
    62 		/**
       
    63 		* Default class constructor.
       
    64 		* @param aEngine - pointer to the CRadioEngine instance (used for callbacks)
       
    65 		* @param aRadioSettings - pointer to the CRadioSettings class
       
    66 		*/
       
    67 		CDosServerObserver(CRadioEngine* aEngine, TRadioSettings* aRadioSettings);
       
    68 		/**
       
    69 		* Second phase class constructor.
       
    70 		*/
       
    71 		void ConstructL();
       
    72 
       
    73 	private:
       
    74 		CRadioEngine *iEngine;
       
    75 		TRadioSettings *iRadioSettings;
       
    76         RDosAudio iDosAudio;
       
    77     };
       
    78 
       
    79 #endif  // __DOSSERVEROBSERVER_H
       
    80 
       
    81 // End of file