|
1 // Copyright (c) 1996-2009 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 /** |
|
17 @file |
|
18 @test |
|
19 @internalComponent - Internal Symbian test code |
|
20 */ |
|
21 |
|
22 #ifndef __TSCRDEVRESSWITCH_H__ |
|
23 #define __TSCRDEVRESSWITCH_H__ |
|
24 |
|
25 #include <e32std.h> |
|
26 #include "w32std.h" |
|
27 #include "../tlib/testbase.h" |
|
28 #include "AUTO.H" |
|
29 #include "TGraphicsHarness.h" |
|
30 |
|
31 class CTScreenDeviceResSwitch : public CTWsGraphicsBase |
|
32 { |
|
33 public: |
|
34 CTScreenDeviceResSwitch(CTestStep* aStep); |
|
35 ~CTScreenDeviceResSwitch(); |
|
36 void ConstructL(); |
|
37 void DeviceResSwitchL(); |
|
38 void DeviceResSwitchWithRotationsL(); |
|
39 protected: |
|
40 virtual void RunTestCaseL(TInt aCurTestCase); |
|
41 private: |
|
42 TInt NumDisplayModeColors(TDisplayMode aDispMode); |
|
43 void CalculateDisplayPropertiesL(); |
|
44 TInt IsTransparencySupportedL(); |
|
45 private: |
|
46 TDisplayMode iMaxDisplayMode; |
|
47 TInt iMaxDisplayModeColors; |
|
48 }; |
|
49 |
|
50 class CTScreenDeviceResSwitchStep : public CTGraphicsStep |
|
51 { |
|
52 public: |
|
53 CTScreenDeviceResSwitchStep(); |
|
54 protected: |
|
55 //from CTGraphicsStep |
|
56 virtual CTGraphicsBase* CreateTestL(); |
|
57 }; |
|
58 |
|
59 _LIT(KTScreenDeviceResSwitchStep,"TScreenDeviceResSwitch"); |
|
60 |
|
61 #endif |