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 SUBTITLEGRAPHICTESTSTEP_H
sl@0: #define SUBTITLEGRAPHICTESTSTEP_H
sl@0: 
sl@0: #include <testframework.h>
sl@0: #include <w32std.h>
sl@0: 
sl@0: #include "mmfsubtitlegraphic.h"
sl@0: 
sl@0: /* 
sl@0: Basic test for subtitle graphic client API
sl@0: */
sl@0: class RSubtitleGraphicTestStep : public RTestStep
sl@0: 	{
sl@0: protected:   
sl@0: 	RSubtitleGraphicTestStep(const TDesC& aStepName);
sl@0: 	
sl@0: 	void InitWservL();
sl@0: 	void DeInitWserv();
sl@0: 	
sl@0: 	// from RTestStep
sl@0:     TVerdict DoTestStepPreambleL();
sl@0:     TVerdict DoTestStepPostambleL();
sl@0:     TVerdict StartCrpDrawL();
sl@0:     
sl@0: 	void PrepGc();
sl@0: 	void RetireGc();
sl@0: 	void InitCrpL();
sl@0: 	void DestroyCrp();
sl@0: 	TBool CreateBitmap1L();
sl@0: 	TBool CreateBitmap2L();
sl@0: 	TBool CreateBitmap3L();
sl@0: 	void DestroyBitmap1();
sl@0: 	void DestroyBitmap2();
sl@0: 	void DestroyBitmap3();
sl@0: 	
sl@0: protected:
sl@0: 	CActiveScheduler* iActiveScheduler;
sl@0: 	TBool iActiveSchedulerStarted;
sl@0: 	RFs iFs;
sl@0: 
sl@0:     // Window server related objects
sl@0:     RWsSession iWs;
sl@0:     CWsScreenDevice* iScreen;
sl@0:     RWindow* iWindow;
sl@0:     RWindowGroup iRootWindow;
sl@0:     CWindowGc *iGc;
sl@0:     CMMFSubtitleGraphic* iCRPGraphic;
sl@0:     CFbsBitmap* iBitmap1;
sl@0: 	CFbsBitmap* iBitmap2;
sl@0: 	CFbsBitmap* iBitmap3;
sl@0:     
sl@0: private:
sl@0:     TWsGraphicId iCRPId;
sl@0: 	};
sl@0: 
sl@0: #endif // SUBTITLEGRAPHICTESTSTEP_H