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