mmlibs/mmfw/tsrc/mmfintegrationtest/vclnt/inc/OpenFileByHandle0522.h
changeset 24 2672ba96448e
equal deleted inserted replaced
21:1c0a769d0cc5 24:2672ba96448e
       
     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 OpenFileByHandle0522.h
       
    21 */
       
    22 
       
    23 #ifndef OPENFILEBYHANDLE0522_H__
       
    24 #define OPENFILEBYHANDLE0522_H__
       
    25 
       
    26 //#include "TSI_MMFVCLNT.h"
       
    27 #include "TestRecord.h"
       
    28 
       
    29 /**
       
    30  * Play Video file
       
    31  * 
       
    32  * @class CTestMmfVclntOpenFile0522
       
    33  *
       
    34  */
       
    35 class CTestMmfVclntOpenFile0522 : public CTestMmfVclntStep, public MVideoRecorderUtilityObserver
       
    36 	{
       
    37 public:
       
    38 	static CTestMmfVclntOpenFile0522* NewL(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, const TBool aRec);
       
    39 	static CTestMmfVclntOpenFile0522* NewLC(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, const TBool aRec);
       
    40 	virtual TVerdict DoTestStepL();
       
    41 	// MVideoRecorderUtilityObserver
       
    42 	virtual void MvruoOpenComplete(TInt aError);  
       
    43 	virtual void MvruoRecordComplete(TInt aError);
       
    44 	virtual void MvruoPrepareComplete(TInt aError);  
       
    45 	virtual void MvruoEvent(const TMMFEvent& aEvent);
       
    46 
       
    47 
       
    48 protected:
       
    49 	CTestMmfVclntOpenFile0522(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, const TBool aRec);
       
    50 	TBuf<KNameBufSize> iSectName;		// Section name for retrieving filename
       
    51 	TBuf<KNameBufSize> iKeyName;		// Key name for retrieving filename
       
    52 	TInt iError;
       
    53 	const TBool iRec;					// Does this test require recording of a video
       
    54 	TTimeIntervalMicroSeconds iDuration;// Stores duration of video
       
    55 	};
       
    56 
       
    57 #endif	// OPENFILEBYHANDLE0522_H__