mmapitest/devsoundexthaitest/inc/T_CAudioInputData.h
changeset 33 0267baa9dea9
equal deleted inserted replaced
24:2672ba96448e 33:0267baa9dea9
       
     1 /*
       
     2 * Copyright (c) 2005-2009 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef T_CAUDIO_INPUT_H
       
    21 #define T_CAUDIO_INPUT_H
       
    22 
       
    23 //User Includes
       
    24 #include "datawrapperbase.h"
       
    25 
       
    26 //Epoc includes
       
    27 #include <audioinput.h>//CAudioInput
       
    28 #include <audioinputmessagetypes.h>
       
    29 #include <sounddevice.h>//CMMFDevSound
       
    30 
       
    31 class CT_CAudioInputData : public CDataWrapperBase
       
    32 	{
       
    33 public:
       
    34 	static	CT_CAudioInputData* NewL();
       
    35 	virtual TAny* GetObject();
       
    36 	virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
       
    37 	CT_CAudioInputData();
       
    38 	
       
    39 private:
       
    40 	void DestroyData();
       
    41 
       
    42 protected:
       
    43 	void DoCmdNewL(const TTEFSectionName& aSection);
       
    44 	void DoCmdDestructor();
       
    45 
       
    46 	void DoCmdAudioInput();
       
    47 	void DoCmdSetAudioInputL(const TTEFSectionName& aSection);
       
    48 	
       
    49 private:
       
    50 	/**
       
    51 	 * Wrapped object
       
    52 	 */
       
    53     CAudioInput* iAudioInput; 
       
    54     /**
       
    55      * Enum for input options
       
    56      */
       
    57     static const TEnumEntryTable iEnumInputOptions[];
       
    58 	};
       
    59 
       
    60 #endif //T_CAUDIO_INPUT_H