diff -r 000000000000 -r bde4ae8d615e os/graphics/graphicsdeviceinterface/bitgdi/tbit/tmultiplescreens.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/os/graphics/graphicsdeviceinterface/bitgdi/tbit/tmultiplescreens.h Fri Jun 15 03:10:57 2012 +0200 @@ -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 +#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