os/mm/mmlibs/mmfw/tsrc/mmfunittest/DevSoundTest/CIPlugins/src/setdrmprotectedtestdevice.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 SETDRMPROTECTEDTESTDEVICE_H
    17 #define SETDRMPROTECTEDTESTDEVICE_H
    18 
    19 #include <mmf/server/mmfswcodecwrapper.h>
    20 #include <mmf/server/devsoundstandardcustominterfaces.h>
    21 
    22 /**
    23 *
    24 * CSetDRMProtectedTestDevice
    25 *
    26 * Test hw device used by the
    27 * TSU_MMF_DEVSOUND_CIU_SUITE unit test harness.
    28 */
    29 class CSetDRMProtectedTestDevice : public CMMFSwCodecWrapper, public MMMFSetDRMProtected
    30 	{
    31 public:
    32 	static CMMFHwDevice* NewL();
    33 	virtual ~CSetDRMProtectedTestDevice();
    34 	virtual TInt Start(TDeviceFunc aFuncCmd, TDeviceFlow aFlowCmd);
    35 	virtual TInt Stop();
    36 	virtual TInt Pause();
    37 	virtual TInt Init(THwDeviceInitParams& aDevInfo);
    38 	virtual TAny* CustomInterface(TUid aInterfaceId);
    39 	virtual TInt ThisHwBufferFilled(CMMFBuffer& aFillBufferPtr);
    40 	virtual TInt ThisHwBufferEmptied(CMMFBuffer& aEmptyBufferPtr);
    41 	virtual TInt SetConfig(TTaskConfig& aConfig);
    42 	virtual TInt StopAndDeleteCodec();
    43 	virtual TInt DeleteCodec();
    44 
    45 	// from CMMFSwCodecWrapper
    46 	virtual CMMFSwCodec& Codec();
    47 
    48 	// from MMMFSetDRMProtected
    49 	virtual TInt MmsdpMarkDataAsDRMProtected(TBool aDRMProtected);
    50 	
    51 private:
    52 	CSetDRMProtectedTestDevice();
    53 	void ConstructL();
    54 	void DoWriteToFileL(TBool aFlag);
    55 	};
    56 
    57 #endif