os/mm/mmlibs/mmfw/tsrc/mmfintegrationtest/vclnt/inc/DRMTestVidPlayer.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
// REQ1952
sl@0
    15
// 
sl@0
    16
//
sl@0
    17
sl@0
    18
#ifndef __DRMTESTVIDPLAYER_H__
sl@0
    19
#define __DRMTESTVIDPLAYER_H__
sl@0
    20
sl@0
    21
#include <fbs.h>
sl@0
    22
#include "TSI_MMFVCLNT.h"
sl@0
    23
#include "TestPlayer.h"
sl@0
    24
sl@0
    25
/**
sl@0
    26
 *
sl@0
    27
 * DRM Get Frame from unprotected file 
sl@0
    28
 *
sl@0
    29
 * @class CTestStepVidPlayerDRMGetFrame
sl@0
    30
 *
sl@0
    31
 * @xxxx
sl@0
    32
 *
sl@0
    33
 */
sl@0
    34
sl@0
    35
class CTestStepVidPlayerDRMGetFrame : public CTestVclntVideoFile
sl@0
    36
	{
sl@0
    37
public:
sl@0
    38
	static CTestStepVidPlayerDRMGetFrame* NewL(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName);
sl@0
    39
	virtual TVerdict DoTestStepL();
sl@0
    40
	virtual TVerdict DoTestL(CVideoPlayerUtility* aPlayer);
sl@0
    41
	virtual void MvpuoFrameReady(CFbsBitmap& aFrame,TInt aError);
sl@0
    42
private:
sl@0
    43
	CTestStepVidPlayerDRMGetFrame(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName);
sl@0
    44
	};
sl@0
    45
sl@0
    46
/**
sl@0
    47
 *
sl@0
    48
 * DRM Get Frame from protected file 
sl@0
    49
 *
sl@0
    50
 * @class CTestStepVidPlayerDRMGetFrame
sl@0
    51
 *
sl@0
    52
 * @xxxx
sl@0
    53
 *
sl@0
    54
 */
sl@0
    55
class CTestStepVidPlayerDRMGetFrameProtected : public CTestVclntVideoFile
sl@0
    56
	{
sl@0
    57
public:
sl@0
    58
	static CTestStepVidPlayerDRMGetFrameProtected* NewL(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName);
sl@0
    59
	virtual TVerdict DoTestStepL();
sl@0
    60
	virtual TVerdict DoTestL(CVideoPlayerUtility* aPlayer);
sl@0
    61
	virtual void MvpuoFrameReady(CFbsBitmap& aFrame,TInt aError);
sl@0
    62
private:
sl@0
    63
	CTestStepVidPlayerDRMGetFrameProtected(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName);
sl@0
    64
	};
sl@0
    65
sl@0
    66
/**
sl@0
    67
 *
sl@0
    68
 * Attempt ot open a DRM protected file and play with no rights set
sl@0
    69
 *
sl@0
    70
 * @class CTestStepVidPlayerDRMPlayNoRights
sl@0
    71
 *
sl@0
    72
 * @xxxx
sl@0
    73
 *
sl@0
    74
 */
sl@0
    75
class CTestStepVidPlayerDRMPlayNoRights :public CTestVclntVideoFile
sl@0
    76
	{
sl@0
    77
public:
sl@0
    78
	static CTestStepVidPlayerDRMPlayNoRights* NewL(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName);
sl@0
    79
	virtual TVerdict DoTestStepL();
sl@0
    80
	virtual TVerdict DoTestL(CVideoPlayerUtility* aPlayer);
sl@0
    81
private:
sl@0
    82
	CTestStepVidPlayerDRMPlayNoRights(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName);
sl@0
    83
sl@0
    84
	};
sl@0
    85
sl@0
    86
/**
sl@0
    87
 *
sl@0
    88
 * Open a DRM protected video file and play with DRM agent providing 
sl@0
    89
 * rights and MIME typ set
sl@0
    90
 *
sl@0
    91
 * @class CTestStepVidPlayerDRMPlayRights
sl@0
    92
 *
sl@0
    93
 * @xxxx
sl@0
    94
 *
sl@0
    95
 */
sl@0
    96
class CTestStepVidPlayerDRMPlayRights :public CTestVclntVideoFile
sl@0
    97
	{
sl@0
    98
public:
sl@0
    99
	static CTestStepVidPlayerDRMPlayRights* NewL(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName);
sl@0
   100
	virtual TVerdict DoTestStepL();
sl@0
   101
	virtual TVerdict DoTestL(CVideoPlayerUtility* aPlayer);
sl@0
   102
private:
sl@0
   103
	CTestStepVidPlayerDRMPlayRights(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName);
sl@0
   104
sl@0
   105
	};
sl@0
   106
sl@0
   107
TAny	GetDriveName(TDes& aFileName);
sl@0
   108
sl@0
   109
#endif //__DRMTESTVIDPLAYER_H__