graphicsdeviceinterface/bitgdi/tbit/tmultiplescreens.h
changeset 136 62bb7c97884c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/graphicsdeviceinterface/bitgdi/tbit/tmultiplescreens.h	Fri Jul 30 11:41:40 2010 +0300
@@ -0,0 +1,65 @@
+// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of "Eclipse Public License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.eclipse.org/legal/epl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+//
+
+#ifndef TMULTIPLESCREENS_H
+#define TMULTIPLESCREENS_H
+
+#include <bitdev.h>
+#include "TGraphicsHarness.h"
+
+//
+//
+//The main test class. Add your test methods here.
+class CTMultipleScreens : public CTGraphicsBase
+	{
+public:
+	CTMultipleScreens(CTestStep* aStep);
+	~CTMultipleScreens();
+	void TestL();
+protected:
+//from 	CTGraphicsStep
+	virtual void RunTestCaseL(TInt aCurTestCase);
+	void ConstructL();
+private:
+	
+	void CreateScreenDeviceL();
+
+	void DoRotateMoveTextL();
+	TInt CreateScrDevAndContext(TDisplayMode aDisplayMode);
+	TInt CreateScrDevAndContext(TInt aScreenNo, TDisplayMode aDisplayMode);
+	void DeleteScreenDevice();
+	void DeleteGraphicsContext();
+	void CreateFontL();
+	void DestroyFont();
+
+private:
+	CFbsScreenDevice* iScrDev;
+	CFbsBitGc* iGc;
+	};
+
+class CTMultipleScreensStep : public CTGraphicsStep
+	{
+public:
+	CTMultipleScreensStep();
+protected:	
+	//from CTGraphicsStep
+	virtual CTGraphicsBase* CreateTestL();
+	virtual void TestSetupL();
+	virtual void TestClose();
+	};
+
+_LIT(KTMultipleScreensStep,"TMultipleScreens");
+
+#endif //TMULTIPLESCREENS_H