Update contrib.
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_CurrentSoundFormatData
25 #ifndef T_CURRENTSOUNDFORMATDATA_H_
26 #define T_CURRENTSOUNDFORMATDATA_H_
29 #include "t_mdadevsounddata.h"
32 * Class to wrap RMdaDevSound::TCurrentSoundFormat
35 class CT_CurrentSoundFormatData : public CDataWrapperBase
38 /** constant for max descriptor length */
39 const static TInt KDesMaxLength = 128;
44 * Two phase constructor
46 * @leave system wide error
48 static CT_CurrentSoundFormatData* NewL();
53 ~CT_CurrentSoundFormatData();
55 virtual TAny* GetObject();
56 virtual void SetObjectL(TAny* aAny);
57 virtual void DisownObjectL();
58 inline virtual TCleanupOperation CleanupOperation();
60 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
64 * Private constructor. First phase construction
66 CT_CurrentSoundFormatData();
68 * Second phase construction
72 static void CleanupOperation( TAny* aAny );
78 void DoInitiateSupportedFormatsL(const TDesC& aSection);
83 void DoCmdNewL(const TDesC& aSection);
84 void DoCmdDestructor();
85 void DoCmd_iRate_get(const TDesC& aSection);
86 void DoCmd_iEncoding_getL(const TDesC& aSection);
87 void DoCmd_iChannels_get(const TDesC& aSection);
88 void DoCmd_iBufferSize_get(const TDesC& aSection);
89 void DoCmd_iRate_set(const TDesC& aSection);
90 void DoCmd_iEncoding_set(const TDesC& aSection);
91 void DoCmd_iChannels_set(const TDesC& aSection);
92 void DoCmd_iBufferSize_set(const TDesC& aSection);
95 /** Instance for manipulating current sound format */
96 RMdaDevSound::TCurrentSoundFormat* iCurrentFormat;
99 #endif /*T_CURRENTSOUNDFORMATDATA_H_*/