os/mm/mmlibs/mmfw/tsrc/mmfintegrationtest/DSCapTestServer/DevSoundServerTestStep.h
Update contrib.
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __DEVSOUNDSERVERTESTSTEP_H__
17 #define __DEVSOUNDSERVERTESTSTEP_H__
20 #include <simulprocserver.h>
21 #include <mmf/server/sounddevice.h>
24 class CSDevSoundTestStep1 : public CSimulProcTestStep, public MDevSoundObserver
27 static CSDevSoundTestStep1* NewL();
29 virtual void StartProcessing(TRequestStatus& aStatus);
30 virtual TVerdict EndProcessingAndReturnResult(TDes8& aMessage);
31 virtual ~CSDevSoundTestStep1();
35 void InitializeComplete (TInt aError);
36 void ToneFinished (TInt aError);
37 void BufferToBeFilled (CMMFBuffer* aBuffer);
38 void PlayError (TInt aError);
39 void BufferToBeEmptied (CMMFBuffer* aBuffer);
40 void RecordError (TInt aError);
41 void ConvertError (TInt aError);
42 void DeviceMessage (TUid aMessageType, const TDesC8& aMsg);
44 TVerdict TestInitialize(TMMFState aMode);
45 TVerdict TestPlayTone(TInt aFreq, TTimeIntervalMicroSeconds aDur);
46 TVerdict DoPlaySimpleTone();
63 //CMMFDevSound* iMMFDevSound;
65 TRequestStatus* iStatus;
68 TFixedArray<TInt, 7> iCallbackArray;
69 void ResetCallbacks();
70 TInt GetCallbackTotal();
74 CMMFDevSound* iMMFDevSound;