haitest/bspsvs/suite/bsp/sound/inc/t_soundformatssupporteddata.h
changeset 0 cec860690d41
equal deleted inserted replaced
-1:000000000000 0:cec860690d41
       
     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 @test
       
    20 @internalComponent
       
    21 
       
    22 This contains CT_SoundFormatsSupportedData 
       
    23 */
       
    24 
       
    25 #ifndef T_SOUNDFORMATSSUPPORTEDDATA_H_
       
    26 #define T_SOUNDFORMATSSUPPORTEDDATA_H_
       
    27 
       
    28 //	User Includes
       
    29 #include "t_mdadevsounddata.h"
       
    30 
       
    31 /**
       
    32  * Class to wrap RMdaDevSound::TSoundFormatsSupported APIs.
       
    33  *
       
    34  */
       
    35 class CT_SoundFormatsSupportedData : public CDataWrapperBase
       
    36 	{
       
    37 public:
       
    38 
       
    39 	/**
       
    40 	* Two phase constructor
       
    41 	*
       
    42 	* @leave	system wide error
       
    43 	*/
       
    44 	static CT_SoundFormatsSupportedData *	NewL();
       
    45 
       
    46 	/**
       
    47 	* Public destructor
       
    48 	*/
       
    49 	~CT_SoundFormatsSupportedData ();
       
    50 
       
    51 	virtual TAny*	GetObject();
       
    52 	virtual void	SetObjectL(TAny* aAny);
       
    53 	virtual void	DisownObjectL();
       
    54 
       
    55 	inline virtual 	TCleanupOperation CleanupOperation();
       
    56 
       
    57 	virtual TBool	DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
       
    58 	
       
    59 	/** constant for max descriptor length   */
       
    60 	const static 	TInt KDesMaxLength = 128;
       
    61 	
       
    62 private:
       
    63 	/**
       
    64 	* Private constructor. First phase construction
       
    65 	*/
       
    66 	CT_SoundFormatsSupportedData ();
       
    67 	
       
    68 	/**
       
    69 	* Second phase construction
       
    70 	*/
       
    71 	void	ConstructL();
       
    72 	
       
    73 	static void CleanupOperation( TAny* aAny );
       
    74 
       
    75 	/**
       
    76 	* Helpers
       
    77 	*/
       
    78 	void	DoCleanup();
       
    79 	
       
    80 	/**
       
    81 	* Commands
       
    82 	*/
       
    83 	void	DoCmdNew();
       
    84 	void	DoCmdDestructor();
       
    85 	void	DoCmd_iMinRate_get(const TDesC& aSection);
       
    86 	void	DoCmd_iMaxRate_get(const TDesC& aSection);
       
    87 	void	DoCmd_iMinBufferSize_get(const TDesC& aSection);
       
    88 	void	DoCmd_iMaxBufferSize_get(const TDesC& aSection);
       
    89 	void	DoCmd_iMinVolume_get(const TDesC& aSection);
       
    90 	void	DoCmd_iMaxVolume_get(const TDesC& aSection);
       
    91 	void	DoCmd_iChannels_get(const TDesC& aSection);
       
    92 	void	DoCmd_iEncodings_getL(const TDesC& aSection);
       
    93 
       
    94 private:
       
    95 	/** Instance for manipulating sound formats supported   */
       
    96 	RMdaDevSound::TSoundFormatsSupported*	iFormatsSupported;
       
    97 	};
       
    98 
       
    99 #endif /*T_SOUNDFORMATSSUPPORTEDDATA_H_*/