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.
18 #ifndef __DRMTESTVIDPLAYER_H__
19 #define __DRMTESTVIDPLAYER_H__
22 #include "TSI_MMFVCLNT.h"
23 #include "TestPlayer.h"
27 * DRM Get Frame from unprotected file
29 * @class CTestStepVidPlayerDRMGetFrame
35 class CTestStepVidPlayerDRMGetFrame : public CTestVclntVideoFile
38 static CTestStepVidPlayerDRMGetFrame* NewL(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName);
39 virtual TVerdict DoTestStepL();
40 virtual TVerdict DoTestL(CVideoPlayerUtility* aPlayer);
41 virtual void MvpuoFrameReady(CFbsBitmap& aFrame,TInt aError);
43 CTestStepVidPlayerDRMGetFrame(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName);
48 * DRM Get Frame from protected file
50 * @class CTestStepVidPlayerDRMGetFrame
55 class CTestStepVidPlayerDRMGetFrameProtected : public CTestVclntVideoFile
58 static CTestStepVidPlayerDRMGetFrameProtected* NewL(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName);
59 virtual TVerdict DoTestStepL();
60 virtual TVerdict DoTestL(CVideoPlayerUtility* aPlayer);
61 virtual void MvpuoFrameReady(CFbsBitmap& aFrame,TInt aError);
63 CTestStepVidPlayerDRMGetFrameProtected(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName);
68 * Attempt ot open a DRM protected file and play with no rights set
70 * @class CTestStepVidPlayerDRMPlayNoRights
75 class CTestStepVidPlayerDRMPlayNoRights :public CTestVclntVideoFile
78 static CTestStepVidPlayerDRMPlayNoRights* NewL(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName);
79 virtual TVerdict DoTestStepL();
80 virtual TVerdict DoTestL(CVideoPlayerUtility* aPlayer);
82 CTestStepVidPlayerDRMPlayNoRights(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName);
88 * Open a DRM protected video file and play with DRM agent providing
89 * rights and MIME typ set
91 * @class CTestStepVidPlayerDRMPlayRights
96 class CTestStepVidPlayerDRMPlayRights :public CTestVclntVideoFile
99 static CTestStepVidPlayerDRMPlayRights* NewL(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName);
100 virtual TVerdict DoTestStepL();
101 virtual TVerdict DoTestL(CVideoPlayerUtility* aPlayer);
103 CTestStepVidPlayerDRMPlayRights(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName);
107 TAny GetDriveName(TDes& aFileName);
109 #endif //__DRMTESTVIDPLAYER_H__