Update contrib.
2 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
3 // All rights reserved.
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.
15 // Header file: Basic tests.
20 @file OpenFileByHandle7904.h
23 #ifndef OPENFILEBYHANDLE7904_H__
24 #define OPENFILEBYHANDLE7904_H__
26 #include "TestRecorder.h"
27 #include "TSI_MMFACLNT.h"
32 * @class CTestMmfAclntOpenFile7904
36 class CTestMmfAclntOpenFile7904 : public CTestMmfAclntCodecTest,
37 public MMdaObjectStateChangeObserver,
38 public MMdaAudioPlayerCallback,
39 public MMdaAudioOutputStreamCallback
42 static CTestMmfAclntOpenFile7904* NewL( const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, const TTestFormat aFormat = ENone, const TBool aCreateFile = EFalse );
43 static CTestMmfAclntOpenFile7904* NewLC( const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, const TTestFormat aFormat = ENone, const TBool aCreateFile = EFalse );
44 virtual TVerdict DoTestStepL();
45 virtual TVerdict DoTestStepPreambleL();
46 virtual void MoscoStateChangeEvent( CBase* aObject, TInt aPreviousState, TInt aCurrentState, TInt aErrorCode );
48 // from MMdaAudioPlayerCallback
50 virtual void MapcInitComplete( TInt aError, const TTimeIntervalMicroSeconds& aDuration );
51 virtual void MapcPlayComplete( TInt aError );
53 // from MMdaAudioOutputStreamCallback
55 virtual void MaoscOpenComplete( TInt aError );
56 virtual void MaoscBufferCopied( TInt aError, const TDesC8& aBuffer );
57 virtual void MaoscPlayComplete( TInt aError );
60 CTestMmfAclntOpenFile7904( const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, const TTestFormat aFormat = ENone, const TBool aCreateFile = EFalse );
65 TBuf<KNameBufSize> iSectName; // Section name for retrieving filename
66 TBuf<KNameBufSize> iKeyName; // Key name for retrieving filename
70 #endif // OPENFILEBYHANDLE7904_H__