os/mm/mm_plat/audio_routing_api/inc/AudioInput.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_api/inc/AudioInput.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,86 @@
     1.4 +/*
     1.5 +* Copyright (c) 2006 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: AudioInput API header
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +#ifndef CAUDIOINPUT_H
    1.23 +#define CAUDIOINPUT_H
    1.24 +
    1.25 +//  INCLUDES
    1.26 +#include <e32base.h>
    1.27 +#include <midiclientutility.h>
    1.28 +
    1.29 +// FORWARD DECLARATIONS
    1.30 +class CMdaAudioRecorderUtility;
    1.31 +class CMMFDevSound;
    1.32 +class MCustomInterface;
    1.33 +class MCustomCommand;
    1.34 +class CMdaAudioInputStream;
    1.35 +class CVideoRecorderUtility;
    1.36 +
    1.37 +// CLASS DECLARATION
    1.38 +
    1.39 +/**
    1.40 +*  ?one_line_short_description.
    1.41 +*  ?other_description_lines
    1.42 +*/
    1.43 +class CAudioInput : public CBase
    1.44 +	{
    1.45 +	public:  // Data Types
    1.46 +	
    1.47 +		enum TAudioInputPreference
    1.48 +			{
    1.49 +			EDefaultMic,
    1.50 +			EOutputToSpeaker,
    1.51 +			EFMRadio,
    1.52 +			EVoiceCall,
    1.53 +			ELineIn
    1.54 +			};
    1.55 +
    1.56 +		typedef TArray<TAudioInputPreference> TAudioInputArray;
    1.57 +
    1.58 +    public:  // Constructors and destructor
    1.59 +        
    1.60 +		/**
    1.61 +		* Two-phased constructor.
    1.62 +		*/
    1.63 +		IMPORT_C static CAudioInput* NewL(CMdaAudioRecorderUtility& aUtility);
    1.64 +//	  IMPORT_C static CAudioInput* NewL(CMidiClientUtility& aUtility);	
    1.65 +		IMPORT_C static CAudioInput* NewL(CMMFDevSound& aDevSound);
    1.66 +		IMPORT_C static CAudioInput* NewL(MCustomInterface& aUtility);
    1.67 +		IMPORT_C static CAudioInput* NewL(MCustomCommand& aUtility);
    1.68 +  	    IMPORT_C static CAudioInput* NewL(CMdaAudioInputStream& aUtility);
    1.69 +		IMPORT_C static CAudioInput* NewL(CVideoRecorderUtility& aUtility);
    1.70 +
    1.71 +		/**
    1.72 +		* ?member_description.
    1.73 +		* @param ?arg1 ?description
    1.74 +		* @return ?description
    1.75 +		*/
    1.76 +		virtual TAudioInputArray AudioInput() = 0;
    1.77 +
    1.78 +		/**
    1.79 +		* ?member_description.
    1.80 +		* @param ?arg1 ?description
    1.81 +		* @return ?description
    1.82 +		*/
    1.83 +		virtual void SetAudioInputL(TAudioInputArray aAudioInputs) = 0;        
    1.84 +
    1.85 +	};
    1.86 +
    1.87 +#endif      // CAUDIOINPUT_H
    1.88 +            
    1.89 +// End of File