|
1 // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef TMULTIPLESCREENS_H |
|
17 #define TMULTIPLESCREENS_H |
|
18 |
|
19 #include <bitdev.h> |
|
20 #include "TGraphicsHarness.h" |
|
21 |
|
22 // |
|
23 // |
|
24 //The main test class. Add your test methods here. |
|
25 class CTMultipleScreens : public CTGraphicsBase |
|
26 { |
|
27 public: |
|
28 CTMultipleScreens(CTestStep* aStep); |
|
29 ~CTMultipleScreens(); |
|
30 void TestL(); |
|
31 protected: |
|
32 //from CTGraphicsStep |
|
33 virtual void RunTestCaseL(TInt aCurTestCase); |
|
34 void ConstructL(); |
|
35 private: |
|
36 |
|
37 void CreateScreenDeviceL(); |
|
38 |
|
39 void DoRotateMoveTextL(); |
|
40 TInt CreateScrDevAndContext(TDisplayMode aDisplayMode); |
|
41 TInt CreateScrDevAndContext(TInt aScreenNo, TDisplayMode aDisplayMode); |
|
42 void DeleteScreenDevice(); |
|
43 void DeleteGraphicsContext(); |
|
44 void CreateFontL(); |
|
45 void DestroyFont(); |
|
46 |
|
47 private: |
|
48 CFbsScreenDevice* iScrDev; |
|
49 CFbsBitGc* iGc; |
|
50 }; |
|
51 |
|
52 class CTMultipleScreensStep : public CTGraphicsStep |
|
53 { |
|
54 public: |
|
55 CTMultipleScreensStep(); |
|
56 protected: |
|
57 //from CTGraphicsStep |
|
58 virtual CTGraphicsBase* CreateTestL(); |
|
59 virtual void TestSetupL(); |
|
60 virtual void TestClose(); |
|
61 }; |
|
62 |
|
63 _LIT(KTMultipleScreensStep,"TMultipleScreens"); |
|
64 |
|
65 #endif //TMULTIPLESCREENS_H |