diff -r 000000000000 -r 1bce908db942 multimediacommscontroller/tsrc/componenttests/inc/test_dtmf.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/multimediacommscontroller/tsrc/componenttests/inc/test_dtmf.h Tue Feb 02 01:04:58 2010 +0200 @@ -0,0 +1,109 @@ +/* +* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + + + +#ifndef CTEST_DTMF_H +#define CTEST_DTMF_H + +// INCLUDES +#include +#include +#include "mmccnetworksettings.h" + +// FORWARD DECLARATIONS +class CMccCodecInformation; +class CMccInterface; + +// CLASS +class CTestDtmf : public CBase + { + + enum TDtmfSignalType + { + EInbandSignal = 0x01, + EOutbandSignal = 0x10 + }; + +public: + static CTestDtmf* NewL( CConsoleBase& aConsole, + const TMccNetSettings& aNetsettings ); + + virtual ~CTestDtmf(); + + void DoRunDtmfTestsL(); + +private: + + /** + * Test different combinations of DTMF-stream creation. + * + * @since S60 4.0 + * @param aSigType Signaling type + * @return void + */ + void TestStreamCreationL( TDtmfSignalType aSigType ); + + /** + * Verifies that stream control operations works for DTMF-stream. + * + * @since S60 4.0 + * @param aSigType Signaling type + * @return void + */ + void TestStreamControlL( TDtmfSignalType aSigType ); + + /** + * Verifies that DTMF string sending works. + * + * @since S60 4.0 + * @param aSigType Signaling type + * @return void + */ + void TestAutomaticDtmfSendingL( TDtmfSignalType aSigType ); + + /** + * Verifies that manual DTMF sending works. + * + * @since S60 4.0 + * @param aSigType Signaling type + * @return void + */ + void TestManualDtmfSendingL( TDtmfSignalType aSigType ); + +private: + + CTestDtmf( CConsoleBase& aConsole, const TMccNetSettings& aNetsettings ); + + void ConstructL(); + + CMccCodecInformation* FetchCodecByMimeSubtypeNameL( + const CMccInterface& aInterface, const TDesC8& aName ) const; + +private: + + // Not own + CConsoleBase& iConsole; + + TMccNetSettings iNetsettings; + + }; + +#endif //CTEST_DTMF_H + +// End of File