diff -r 000000000000 -r bde4ae8d615e os/mm/mmlibs/mmfw/tsrc/mmfintegrationtest/ACLNT/OpenFileByHandle7906.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/os/mm/mmlibs/mmfw/tsrc/mmfintegrationtest/ACLNT/OpenFileByHandle7906.h Fri Jun 15 03:10:57 2012 +0200 @@ -0,0 +1,70 @@ + +// Copyright (c) 2004-2009 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: +// Header file: Basic tests. +// +// + +/** + @file OpenFileByHandle7906.h +*/ + +#ifndef OPENFILEBYHANDLE7906_H__ +#define OPENFILEBYHANDLE7906_H__ + +#include "TestRecorder.h" +#include "TSI_MMFACLNT.h" + +/** + * Open new file. + * + * @class CTestMmfAclntOpenFile7906 + * + */ + +class CTestMmfAclntOpenFile7906 : public CTestMmfAclntCodecTest, + public MMdaObjectStateChangeObserver, + public MMdaAudioPlayerCallback, + public MMdaAudioOutputStreamCallback + { +public: + static CTestMmfAclntOpenFile7906* NewL( const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, const TTestFormat aFormat = ENone, const TBool aCreateFile = EFalse ); + static CTestMmfAclntOpenFile7906* NewLC( const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, const TTestFormat aFormat = ENone, const TBool aCreateFile = EFalse ); + virtual TVerdict DoTestStepL(); + virtual TVerdict DoTestStepPreambleL(); + virtual void MoscoStateChangeEvent( CBase* aObject, TInt aPreviousState, TInt aCurrentState, TInt aErrorCode ); + + // from MMdaAudioPlayerCallback +public: + virtual void MapcInitComplete( TInt aError, const TTimeIntervalMicroSeconds& aDuration ); + virtual void MapcPlayComplete( TInt aError ); + + // from MMdaAudioOutputStreamCallback +public: + virtual void MaoscOpenComplete( TInt aError ); + virtual void MaoscBufferCopied( TInt aError, const TDesC8& aBuffer ); + virtual void MaoscPlayComplete( TInt aError ); + +private: + CTestMmfAclntOpenFile7906( const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, const TTestFormat aFormat = ENone, const TBool aCreateFile = EFalse ); + +private: + TInt iError; + TBool iCreateFile; + TBuf iSectName; // Section name for retrieving filename + TBuf iKeyName; // Key name for retrieving filename + } ; + + +#endif // OPENFILEBYHANDLE7906_H__