Update contrib.
2 // Copyright (c) 2001-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.
16 // Header file: Basic tests.
21 @file TestPlayerUtils.h
24 #ifndef TESTPLAYERCAPS0014_H__
25 #define TESTPLAYERCAPS0014_H__
28 #include "TSI_MMFACLNT.h"
32 * Load and initialise an audio file.
34 * @class CTestMmfAclntCaps0014
37 class CTestMmfAclntCaps0014 : public CTestMmfAclntStep, public MMdaObjectStateChangeObserver
49 static CTestMmfAclntCaps0014* NewL(const TDesC& aTestName, const TDesC& aSectionName, const TDesC& aKeyName);
50 static CTestMmfAclntCaps0014* NewLC(const TDesC& aTestName, const TDesC& aSectionName, const TDesC& aKeyName);
52 ~CTestMmfAclntCaps0014();
54 virtual TVerdict DoTestStepL();
58 // from MMdaAudioPlayerCallback
59 // virtual void MapcInitComplete(TInt aError, const TTimeIntervalMicroSeconds &aDuration);
60 // virtual void MapcPlayComplete(TInt aError);
62 void DoProcess(TInt aError);
64 class CServerMonitor : public CActive
67 static CServerMonitor* NewL(CTestMmfAclntCaps0014* aParent);
72 TRequestStatus& ActiveStatus();
74 CServerMonitor(CTestMmfAclntCaps0014* aParent);
76 CTestMmfAclntCaps0014* iParent;
79 // from MMdaObjectStateChangeObserver
80 virtual void MoscoStateChangeEvent(CBase* aObject, TInt aPreviousState, TInt aCurrentState, TInt aErrorCode);
83 CTestMmfAclntCaps0014(const TDesC& aTestName, const TDesC& aSectionName, const TDesC& aKeyName);
86 CMdaAudioRecorderUtility* iPlayer;
87 CServerMonitor* iServerMonitor;
90 TBuf<KNameBufSize> iSectName; // Section name for retrieving filename
91 TBuf<KNameBufSize> iKeyName; // Key name for retrieving filename
94 #endif // TESTPLAYERCAPS0014_H__