|
1 // Copyright (c) 2006-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 // Enable Multiple Displays |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @test |
|
21 @internalComponent - Internal Symbian test code |
|
22 */ |
|
23 |
|
24 #ifndef __TMULSCREENS_H__ |
|
25 #define __TMULSCREENS_H__ |
|
26 |
|
27 #include <e32err.h> |
|
28 #include <w32std.h> |
|
29 #include "AUTO.H" |
|
30 #include "TGraphicsHarness.h" |
|
31 |
|
32 class CTMulScreens : public CTWsGraphicsBase |
|
33 { |
|
34 public: |
|
35 CTMulScreens(CTestStep* aStep); |
|
36 ~CTMulScreens(); |
|
37 protected: |
|
38 //from CTGraphicsStep |
|
39 virtual void RunTestCaseL(TInt aCurTestCase); |
|
40 private: |
|
41 void ConstructL(); |
|
42 void TestCreateGroupWindowsL(); |
|
43 void TestCreateBlankWindowsL(); |
|
44 void TestGetFocusWindow(); |
|
45 void TestGetDefaultOwningWindow(); |
|
46 void TestSetBackgroundColour(); |
|
47 void TestSetShadowVector(); |
|
48 void TestPanicsL(); |
|
49 static TInt TestInvalidScreenNumberL(TInt aOption,TAny* aScreenNumber); |
|
50 void TestInitaliseScreenDeviceL(); |
|
51 void TestScreenNumbersOfWindowsL(); |
|
52 void TestDeviceL(); |
|
53 private: |
|
54 RWsSession iRws; |
|
55 CWsScreenDevice* iFstScreenDevice; |
|
56 CWsScreenDevice* iSndScreenDevice; |
|
57 RWindowGroup iFstWinGp; |
|
58 RWindowGroup iSndWinGp; |
|
59 TInt iNumScreens; |
|
60 }; |
|
61 |
|
62 class CTMulScreensStep : public CTGraphicsStep |
|
63 { |
|
64 public: |
|
65 CTMulScreensStep(); |
|
66 protected: |
|
67 //from CTGraphicsStep |
|
68 virtual CTGraphicsBase* CreateTestL(); |
|
69 }; |
|
70 |
|
71 _LIT(KTMulScreensStep,"TMulScreens"); |
|
72 |
|
73 #endif |