os/mm/mmlibs/mmfw/tsrc/mmfintegrationtest/vclnt/inc/OpenFileByHandle_PlayText.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.
     1 
     2 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 // All rights reserved.
     4 // This component and the accompanying materials are made available
     5 // under the terms of "Eclipse Public License v1.0"
     6 // which accompanies this distribution, and is available
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 //
     9 // Initial Contributors:
    10 // Nokia Corporation - initial contribution.
    11 //
    12 // Contributors:
    13 //
    14 // Description:
    15 // Header file: Basic  tests.
    16 // 
    17 //
    18 
    19 /**
    20  @file OpenFileByHandlePlayTextFile.h
    21 */
    22 
    23 #ifndef OPENFILEBYHANDLEPlayTextFile_H__
    24 #define OPENFILEBYHANDLEPlayTextFile_H__
    25 
    26 #include "TSI_MMFVCLNT.h"
    27 
    28 /**
    29  * Play Video file
    30  * 
    31  * @class CTestMmfVclntOpenFilePlayTextFile
    32  *
    33  */
    34 class CTestMmfVclntOpenFilePlayTextFile : public CTestMmfVclntStep , public MVideoPlayerUtilityObserver
    35 	{
    36 public:
    37 	static CTestMmfVclntOpenFilePlayTextFile* NewL(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, const TBool aPlay);
    38 	static CTestMmfVclntOpenFilePlayTextFile* NewLC(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, const TBool aPlay);
    39 	virtual TVerdict DoTestStepL();
    40 	// MVideoPlayerUtilityObserver
    41 	virtual void MvpuoOpenComplete(TInt aError);
    42 	virtual void MvpuoPrepareComplete(TInt aError);
    43 	virtual void MvpuoFrameReady(CFbsBitmap& aFrame, TInt aError);
    44 	virtual void MvpuoPlayComplete(TInt aError);
    45 	virtual void MvpuoEvent(const TMMFEvent& aEvent);
    46 protected:
    47 	CTestMmfVclntOpenFilePlayTextFile(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, const TBool aPlay);
    48 	TVerdict PerformTestStepL();
    49 
    50 	TBuf<KNameBufSize> iSectName;			// Section name for retrieving filename
    51 	TBuf<KNameBufSize> iKeyName;			// Key name for retrieving filename
    52 	TInt iError;
    53 	const TBool iPlay;						// Does this test require playing the video
    54 	TTimeIntervalMicroSeconds iDuration;	// Stores duration of video
    55 	};
    56 
    57 #endif	// OPENFILEBYHANDLEPlayTextFile_H__