os/mm/mm_plat/audio_routing_proxy_api/inc/AudioOutputProxy.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/mm_plat/audio_routing_proxy_api/inc/AudioOutputProxy.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,144 @@
     1.4 +/*
     1.5 +* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description: Audio Output Proxy header
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +#ifndef CAUDIOOUTPUTPROXY_H
    1.23 +#define CAUDIOOUTPUTPROXY_H
    1.24 +
    1.25 +//  INCLUDES
    1.26 +#include "AudioOutput.h"
    1.27 +#include <mmf/common/mmfcontrollerframework.h>
    1.28 +#include <MCustomCommand.h>
    1.29 +
    1.30 +// FORWARD DECLARATIONS
    1.31 +class CCustomCommandUtility;
    1.32 +class CCustomInterfaceUtility;
    1.33 +class CAudioOutputProxyAO;
    1.34 +// CLASS DECLARATION
    1.35 +
    1.36 +/**
    1.37 +*  ?one_line_short_description.
    1.38 +*  ?other_description_lines
    1.39 +*/
    1.40 +class CAudioOutputProxy: public CAudioOutput
    1.41 +	{
    1.42 +	friend class CAudioOutput;
    1.43 +    public:  // Constructors and destructor
    1.44 +
    1.45 +		IMPORT_C static CAudioOutputProxy* NewL(TMMFMessageDestinationPckg aMessageHandler, 
    1.46 +												MCustomCommand& aCustomCommand, 
    1.47 +												CCustomInterfaceUtility* aCustomInterfaceUtility);
    1.48 +		
    1.49 +		/**
    1.50 +		* Destructor.
    1.51 +		*/
    1.52 +		virtual ~CAudioOutputProxy();
    1.53 +
    1.54 +		/**
    1.55 +        * ?member_description.
    1.56 +        * @since Series 60 3.0
    1.57 +        * @param aFlag EFalse=unregistered, ETrue=registered
    1.58 +        * @return void
    1.59 +        */
    1.60 +		IMPORT_C static const TUid Uid();
    1.61 +		
    1.62 +		/**
    1.63 +        * ?member_description.
    1.64 +        * @since Series 60 3.0
    1.65 +        * @param aFlag EFalse=unregistered, ETrue=registered
    1.66 +        * @return void
    1.67 +        */
    1.68 +		virtual TAudioOutputPreference AudioOutput();
    1.69 +
    1.70 +		/**
    1.71 +        * ?member_description.
    1.72 +        * @since Series 60 3.0
    1.73 +        * @param aFlag EFalse=unregistered, ETrue=registered
    1.74 +        * @return void
    1.75 +        */
    1.76 +		virtual TAudioOutputPreference DefaultAudioOutput();
    1.77 +
    1.78 +		/**
    1.79 +        * ?member_description.
    1.80 +        * @since Series 60 3.0
    1.81 +        * @param aFlag EFalse=unregistered, ETrue=registered
    1.82 +        * @return void
    1.83 +        */
    1.84 +		virtual void RegisterObserverL( MAudioOutputObserver& aObserver );
    1.85 +
    1.86 +		/**
    1.87 +        * ?member_description.
    1.88 +        * @since Series 60 3.0
    1.89 +        * @param aFlag EFalse=unregistered, ETrue=registered
    1.90 +        * @return void
    1.91 +        */
    1.92 +		virtual TBool SecureOutput();
    1.93 +
    1.94 +		/**
    1.95 +        * ?member_description.
    1.96 +        * @since Series 60 3.0
    1.97 +        * @param aFlag EFalse=unregistered, ETrue=registered
    1.98 +        * @return void
    1.99 +        */
   1.100 +		virtual void SetAudioOutputL( TAudioOutputPreference aAudioOutput = ENoPreference );
   1.101 +
   1.102 +		/**
   1.103 +        * ?member_description.
   1.104 +        * @since Series 60 3.0
   1.105 +        * @param aFlag EFalse=unregistered, ETrue=registered
   1.106 +        * @return void
   1.107 +        */
   1.108 +		virtual void SetSecureOutputL( TBool aSecureOutput = EFalse );
   1.109 +
   1.110 +		/**
   1.111 +        * ?member_description.
   1.112 +        * @since Series 60 3.0
   1.113 +        * @param aFlag EFalse=unregistered, ETrue=registered
   1.114 +        * @return void
   1.115 +        */
   1.116 +		virtual void UnregisterObserver( MAudioOutputObserver& aObserver );
   1.117 +
   1.118 +	protected:
   1.119 +		/**
   1.120 +		* C++ default constructor.
   1.121 +		*/
   1.122 +		CAudioOutputProxy(TMMFMessageDestinationPckg aMessageHandler,
   1.123 +								MCustomCommand& aCustomCommand, 
   1.124 +								CCustomInterfaceUtility* aCustomInterfaceUtility);
   1.125 +
   1.126 +	private:
   1.127 +		/**
   1.128 +		* EPOC constructor.
   1.129 +		*/
   1.130 +		void ConstructL();
   1.131 +
   1.132 +    private:    // Data
   1.133 +		MCustomCommand*                	      iCustomCommand;
   1.134 +		TAudioOutputPreference                iDefaultOutput;
   1.135 +		TAudioOutputPreference                iOutput;
   1.136 +		TBool                                 iSecureOutput;
   1.137 +		MAudioOutputObserver*		  		  iObserver;
   1.138 +		TMMFMessageDestinationPckg            iMessageHandler;
   1.139 +		CAudioOutputProxyAO*				  iAsyncSender;
   1.140 +		TBool								  iRegistered;
   1.141 +		CCustomInterfaceUtility* 			  iCustomInterfaceUtility;
   1.142 +
   1.143 +	};
   1.144 +
   1.145 +#endif      // CAUDIOINPUTPROXY_H
   1.146 +            
   1.147 +// End of File