mmlibs/mmfw/tsrc/mmfintegrationtest/vclntavi/src/teststepvclnt2crp.h
changeset 29 eb1e5d7cc688
parent 26 c36d67f77f75
child 30 9707f1c07383
equal deleted inserted replaced
26:c36d67f77f75 29:eb1e5d7cc688
     1 // Copyright (c) 2008-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 TESTSTEPVCLNT2CRP_H
       
    17 #define TESTSTEPVCLNT2CRP_H
       
    18 
       
    19 #include <surfaceeventhandler.h>
       
    20 #include <graphics/surface.h>
       
    21 
       
    22 #include "testvideoplayer2.h"
       
    23 
       
    24 class RTestStepVclnt2CRP : 
       
    25 	public RTestVclnt2PlayFile,
       
    26 	public MMMFSurfaceEventHandler
       
    27 	{
       
    28 public:
       
    29 	static RTestStepVclnt2CRP* NewL(const TDesC& aName);
       
    30 	~RTestStepVclnt2CRP();
       
    31 
       
    32 	// MMMFSurfaceEventHandler
       
    33 	void MmsehSurfaceCreated(TInt aDisplayId, const TSurfaceId& aId, const TRect& aCropRect, TVideoAspectRatio aAspectRatio);
       
    34 	void MmsehSurfaceParametersChanged(const TSurfaceId& aId, const TRect& aCropRect, TVideoAspectRatio aAspectRatio);
       
    35 	void MmsehRemoveSurface(const TSurfaceId& aId);
       
    36 
       
    37 protected:
       
    38 	TVerdict DoTestStepPreambleL();
       
    39 	TVerdict DoTestStepPostambleL();
       
    40 
       
    41 	virtual void HandleOpenCompleteL();
       
    42 
       
    43 private:
       
    44 	RTestStepVclnt2CRP(const TDesC& aName);
       
    45 
       
    46 	void FailTest(const TDesC& aMessage);
       
    47 
       
    48 private:
       
    49 	TBool iUseCRP;
       
    50 	TBool iAddDisplay;
       
    51 	TBool iAddWindow;
       
    52 	TSurfaceId iSurfaceId;
       
    53 	TRect iCropRect;
       
    54 	RWindow* iSurfaceWindow;
       
    55 	};
       
    56 
       
    57 #endif // TESTSTEPVCLNT2CRP_H