1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/boardsupport/haitest/bspsvs/suite/bsp/sound/inc/t_soundformatssupporteddata.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,99 @@
1.4 +/*
1.5 +* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description:
1.18 +*
1.19 +*/
1.20 +
1.21 +/**
1.22 +@test
1.23 +@internalComponent
1.24 +
1.25 +This contains CT_SoundFormatsSupportedData
1.26 +*/
1.27 +
1.28 +#ifndef T_SOUNDFORMATSSUPPORTEDDATA_H_
1.29 +#define T_SOUNDFORMATSSUPPORTEDDATA_H_
1.30 +
1.31 +// User Includes
1.32 +#include "t_mdadevsounddata.h"
1.33 +
1.34 +/**
1.35 + * Class to wrap RMdaDevSound::TSoundFormatsSupported APIs.
1.36 + *
1.37 + */
1.38 +class CT_SoundFormatsSupportedData : public CDataWrapperBase
1.39 + {
1.40 +public:
1.41 +
1.42 + /**
1.43 + * Two phase constructor
1.44 + *
1.45 + * @leave system wide error
1.46 + */
1.47 + static CT_SoundFormatsSupportedData * NewL();
1.48 +
1.49 + /**
1.50 + * Public destructor
1.51 + */
1.52 + ~CT_SoundFormatsSupportedData ();
1.53 +
1.54 + virtual TAny* GetObject();
1.55 + virtual void SetObjectL(TAny* aAny);
1.56 + virtual void DisownObjectL();
1.57 +
1.58 + inline virtual TCleanupOperation CleanupOperation();
1.59 +
1.60 + virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
1.61 +
1.62 + /** constant for max descriptor length */
1.63 + const static TInt KDesMaxLength = 128;
1.64 +
1.65 +private:
1.66 + /**
1.67 + * Private constructor. First phase construction
1.68 + */
1.69 + CT_SoundFormatsSupportedData ();
1.70 +
1.71 + /**
1.72 + * Second phase construction
1.73 + */
1.74 + void ConstructL();
1.75 +
1.76 + static void CleanupOperation( TAny* aAny );
1.77 +
1.78 + /**
1.79 + * Helpers
1.80 + */
1.81 + void DoCleanup();
1.82 +
1.83 + /**
1.84 + * Commands
1.85 + */
1.86 + void DoCmdNew();
1.87 + void DoCmdDestructor();
1.88 + void DoCmd_iMinRate_get(const TDesC& aSection);
1.89 + void DoCmd_iMaxRate_get(const TDesC& aSection);
1.90 + void DoCmd_iMinBufferSize_get(const TDesC& aSection);
1.91 + void DoCmd_iMaxBufferSize_get(const TDesC& aSection);
1.92 + void DoCmd_iMinVolume_get(const TDesC& aSection);
1.93 + void DoCmd_iMaxVolume_get(const TDesC& aSection);
1.94 + void DoCmd_iChannels_get(const TDesC& aSection);
1.95 + void DoCmd_iEncodings_getL(const TDesC& aSection);
1.96 +
1.97 +private:
1.98 + /** Instance for manipulating sound formats supported */
1.99 + RMdaDevSound::TSoundFormatsSupported* iFormatsSupported;
1.100 + };
1.101 +
1.102 +#endif /*T_SOUNDFORMATSSUPPORTEDDATA_H_*/