os/mm/mm_plat/audio_routing_api/inc/AudioInput.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 /*
     2 * Copyright (c) 2006 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: AudioInput API header
    15 *
    16 */
    17 
    18 
    19 #ifndef CAUDIOINPUT_H
    20 #define CAUDIOINPUT_H
    21 
    22 //  INCLUDES
    23 #include <e32base.h>
    24 #include <midiclientutility.h>
    25 
    26 // FORWARD DECLARATIONS
    27 class CMdaAudioRecorderUtility;
    28 class CMMFDevSound;
    29 class MCustomInterface;
    30 class MCustomCommand;
    31 class CMdaAudioInputStream;
    32 class CVideoRecorderUtility;
    33 
    34 // CLASS DECLARATION
    35 
    36 /**
    37 *  ?one_line_short_description.
    38 *  ?other_description_lines
    39 */
    40 class CAudioInput : public CBase
    41 	{
    42 	public:  // Data Types
    43 	
    44 		enum TAudioInputPreference
    45 			{
    46 			EDefaultMic,
    47 			EOutputToSpeaker,
    48 			EFMRadio,
    49 			EVoiceCall,
    50 			ELineIn
    51 			};
    52 
    53 		typedef TArray<TAudioInputPreference> TAudioInputArray;
    54 
    55     public:  // Constructors and destructor
    56         
    57 		/**
    58 		* Two-phased constructor.
    59 		*/
    60 		IMPORT_C static CAudioInput* NewL(CMdaAudioRecorderUtility& aUtility);
    61 //	  IMPORT_C static CAudioInput* NewL(CMidiClientUtility& aUtility);	
    62 		IMPORT_C static CAudioInput* NewL(CMMFDevSound& aDevSound);
    63 		IMPORT_C static CAudioInput* NewL(MCustomInterface& aUtility);
    64 		IMPORT_C static CAudioInput* NewL(MCustomCommand& aUtility);
    65   	    IMPORT_C static CAudioInput* NewL(CMdaAudioInputStream& aUtility);
    66 		IMPORT_C static CAudioInput* NewL(CVideoRecorderUtility& aUtility);
    67 
    68 		/**
    69 		* ?member_description.
    70 		* @param ?arg1 ?description
    71 		* @return ?description
    72 		*/
    73 		virtual TAudioInputArray AudioInput() = 0;
    74 
    75 		/**
    76 		* ?member_description.
    77 		* @param ?arg1 ?description
    78 		* @return ?description
    79 		*/
    80 		virtual void SetAudioInputL(TAudioInputArray aAudioInputs) = 0;        
    81 
    82 	};
    83 
    84 #endif      // CAUDIOINPUT_H
    85             
    86 // End of File