sl@0: // Copyright (c) 2010 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 TMULTIPLESCREENS_H sl@0: #define TMULTIPLESCREENS_H sl@0: sl@0: #include sl@0: #include "TGraphicsHarness.h" sl@0: sl@0: // sl@0: // sl@0: //The main test class. Add your test methods here. sl@0: class CTMultipleScreens : public CTGraphicsBase sl@0: { sl@0: public: sl@0: CTMultipleScreens(CTestStep* aStep); sl@0: ~CTMultipleScreens(); sl@0: void TestL(); sl@0: protected: sl@0: //from CTGraphicsStep sl@0: virtual void RunTestCaseL(TInt aCurTestCase); sl@0: void ConstructL(); sl@0: private: sl@0: sl@0: void CreateScreenDeviceL(); sl@0: sl@0: void DoRotateMoveTextL(); sl@0: TInt CreateScrDevAndContext(TDisplayMode aDisplayMode); sl@0: TInt CreateScrDevAndContext(TInt aScreenNo, TDisplayMode aDisplayMode); sl@0: void DeleteScreenDevice(); sl@0: void DeleteGraphicsContext(); sl@0: void CreateFontL(); sl@0: void DestroyFont(); sl@0: sl@0: private: sl@0: CFbsScreenDevice* iScrDev; sl@0: CFbsBitGc* iGc; sl@0: }; sl@0: sl@0: class CTMultipleScreensStep : public CTGraphicsStep sl@0: { sl@0: public: sl@0: CTMultipleScreensStep(); sl@0: protected: sl@0: //from CTGraphicsStep sl@0: virtual CTGraphicsBase* CreateTestL(); sl@0: virtual void TestSetupL(); sl@0: virtual void TestClose(); sl@0: }; sl@0: sl@0: _LIT(KTMultipleScreensStep,"TMultipleScreens"); sl@0: sl@0: #endif //TMULTIPLESCREENS_H