First public contribution.
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
22 This contains CT_SoundFormatsSupportedData
25 #ifndef T_SOUNDFORMATSSUPPORTEDDATA_H_
26 #define T_SOUNDFORMATSSUPPORTEDDATA_H_
29 #include "t_mdadevsounddata.h"
32 * Class to wrap RMdaDevSound::TSoundFormatsSupported APIs.
35 class CT_SoundFormatsSupportedData : public CDataWrapperBase
40 * Two phase constructor
42 * @leave system wide error
44 static CT_SoundFormatsSupportedData * NewL();
49 ~CT_SoundFormatsSupportedData ();
51 virtual TAny* GetObject();
52 virtual void SetObjectL(TAny* aAny);
53 virtual void DisownObjectL();
55 inline virtual TCleanupOperation CleanupOperation();
57 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
59 /** constant for max descriptor length */
60 const static TInt KDesMaxLength = 128;
64 * Private constructor. First phase construction
66 CT_SoundFormatsSupportedData ();
69 * Second phase construction
73 static void CleanupOperation( TAny* aAny );
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);
95 /** Instance for manipulating sound formats supported */
96 RMdaDevSound::TSoundFormatsSupported* iFormatsSupported;
99 #endif /*T_SOUNDFORMATSSUPPORTEDDATA_H_*/