0
|
1 |
// Copyright (c) 2007-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".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
//
|
|
15 |
|
|
16 |
#ifndef PLAYBACKSTATUSTESTDEVICE_H
|
|
17 |
#define PLAYBACKSTATUSTESTDEVICE_H
|
|
18 |
|
|
19 |
#include <mmf/server/mmfswcodecwrapper.h>
|
|
20 |
#include <mmf/server/devsoundstandardcustominterfaces.h>
|
|
21 |
|
|
22 |
|
|
23 |
/**
|
|
24 |
*
|
|
25 |
* CPlaybackStatusTestDevice
|
|
26 |
*
|
|
27 |
* Test hw device used by the
|
|
28 |
* TSU_MMF_DEVSOUND_CIU_SUITE unit test harness.
|
|
29 |
*
|
|
30 |
*/
|
|
31 |
class CPlaybackStatusTestDevice : public CMMFSwCodecWrapper,
|
|
32 |
public MMMFPlaybackStatus
|
|
33 |
{
|
|
34 |
public:
|
|
35 |
static CMMFHwDevice* NewL();
|
|
36 |
virtual ~CPlaybackStatusTestDevice();
|
|
37 |
virtual TInt Start(TDeviceFunc aFuncCmd, TDeviceFlow aFlowCmd);
|
|
38 |
virtual TInt Stop();
|
|
39 |
virtual TInt Pause();
|
|
40 |
virtual TInt Init(THwDeviceInitParams& aDevInfo);
|
|
41 |
virtual TAny* CustomInterface(TUid aInterfaceId);
|
|
42 |
virtual TInt ThisHwBufferFilled(CMMFBuffer& aFillBufferPtr);
|
|
43 |
virtual TInt ThisHwBufferEmptied(CMMFBuffer& aEmptyBufferPtr);
|
|
44 |
virtual TInt SetConfig(TTaskConfig& aConfig);
|
|
45 |
virtual TInt StopAndDeleteCodec();
|
|
46 |
virtual TInt DeleteCodec();
|
|
47 |
|
|
48 |
// from CMMFSwCodecWrapper
|
|
49 |
virtual CMMFSwCodec& Codec();
|
|
50 |
|
|
51 |
// MMMFPlaybackStatus
|
|
52 |
TInt MmpsGetPlaybackStatusInformation(TMMFPlaybackStatus& aStatus);
|
|
53 |
TInt MmpsRequestLossOfSyncNotification();
|
|
54 |
TInt MmpsCancelLossOfSyncNotification();
|
|
55 |
|
|
56 |
private:
|
|
57 |
CPlaybackStatusTestDevice();
|
|
58 |
void ConstructL();
|
|
59 |
|
|
60 |
private:
|
|
61 |
void WriteSyncNotificationToFileL(TBool aWriteRequest);
|
|
62 |
};
|
|
63 |
|
|
64 |
#endif
|