First public contribution.
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 TESTPLAYERCAPS_H__
25 #define TESTPLAYERCAPS_H__
28 //#include "TSI_MMFACLNT.h"
29 #include "TSI_MMF_SDEVSOUND_STEP.h"
31 const TInt KMaxSvrMessageSize = 256;
34 * Load and initialise an audio file.
36 * @class CTestMmfAclntCaps
39 class CTestMmfAclntCaps : public CTestStepSDevSound, public MMdaAudioPlayerCallback
51 static CTestMmfAclntCaps* NewL(const TDesC& aTestName, const TDesC& aSectionName, const TDesC& aKeyName);
52 static CTestMmfAclntCaps* NewLC(const TDesC& aTestName, const TDesC& aSectionName, const TDesC& aKeyName);
55 virtual TVerdict DoTestStepL();
59 // from MMdaAudioPlayerCallback
60 virtual void MapcInitComplete(TInt aError, const TTimeIntervalMicroSeconds &aDuration);
61 virtual void MapcPlayComplete(TInt aError);
63 void DoProcess(TInt aError);
65 class CServerMonitor : public CActive
68 static CServerMonitor* NewL(CTestMmfAclntCaps* aParent);
73 TRequestStatus& ActiveStatus();
75 CServerMonitor(CTestMmfAclntCaps* aParent);
77 CTestMmfAclntCaps* iParent;
81 CTestMmfAclntCaps(const TDesC& aTestName, const TDesC& aSectionName, const TDesC& aKeyName);
84 CMdaAudioPlayerUtility* iPlayer;
85 CServerMonitor* iServerMonitor;
88 TBuf<KNameBufSize> iSectName; // Section name for retrieving filename
89 TBuf<KNameBufSize> iKeyName; // Key name for retrieving filename