sl@0: // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef TESTSTEPVCLNT2CRP_H sl@0: #define TESTSTEPVCLNT2CRP_H sl@0: sl@0: #include sl@0: #include sl@0: sl@0: #include "testvideoplayer2.h" sl@0: sl@0: class RTestStepVclnt2CRP : sl@0: public RTestVclnt2PlayFile, sl@0: public MMMFSurfaceEventHandler sl@0: { sl@0: public: sl@0: static RTestStepVclnt2CRP* NewL(const TDesC& aName); sl@0: ~RTestStepVclnt2CRP(); sl@0: sl@0: // MMMFSurfaceEventHandler sl@0: void MmsehSurfaceCreated(TInt aDisplayId, const TSurfaceId& aId, const TRect& aCropRect, TVideoAspectRatio aAspectRatio); sl@0: void MmsehSurfaceParametersChanged(const TSurfaceId& aId, const TRect& aCropRect, TVideoAspectRatio aAspectRatio); sl@0: void MmsehRemoveSurface(const TSurfaceId& aId); sl@0: sl@0: protected: sl@0: TVerdict DoTestStepPreambleL(); sl@0: TVerdict DoTestStepPostambleL(); sl@0: sl@0: virtual void HandleOpenCompleteL(); sl@0: sl@0: private: sl@0: RTestStepVclnt2CRP(const TDesC& aName); sl@0: sl@0: void FailTest(const TDesC& aMessage); sl@0: sl@0: private: sl@0: TBool iUseCRP; sl@0: TBool iAddDisplay; sl@0: TBool iAddWindow; sl@0: TSurfaceId iSurfaceId; sl@0: TRect iCropRect; sl@0: RWindow* iSurfaceWindow; sl@0: }; sl@0: sl@0: #endif // TESTSTEPVCLNT2CRP_H