1 /* |
|
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #if (!defined __T_GRAPHICS_WSERV_SCREENDEVICE_H__) |
|
20 #define __T_GRAPHICS_WSERV_SCREENDEVICE_H__ |
|
21 |
|
22 // User Includes |
|
23 #include "T_DataBitmapDevice.h" |
|
24 #include "T_DataWsClientClass.h" |
|
25 |
|
26 |
|
27 /** |
|
28 * Test Active Notification class |
|
29 * |
|
30 */ |
|
31 class CT_DataWsScreenDevice : public CT_DataBitmapDevice, public CT_DataWsClientClass |
|
32 { |
|
33 public: |
|
34 static CT_DataWsScreenDevice* NewL(); |
|
35 |
|
36 ~CT_DataWsScreenDevice(); |
|
37 |
|
38 virtual TAny* GetObject(); |
|
39 virtual void SetObjectL(TAny* aAny); |
|
40 |
|
41 virtual void DisownObjectL(); |
|
42 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
43 |
|
44 protected: |
|
45 CT_DataWsScreenDevice(); |
|
46 void ConstructL(); |
|
47 |
|
48 virtual MWsClientClass* GetClientClass() const; |
|
49 virtual MGraphicsDeviceMap* GetGraphicsDeviceMap() const; |
|
50 virtual CGraphicsDevice* GetGraphicsDevice() const; |
|
51 virtual CBitmapDevice* GetBitmapDevice() const; |
|
52 |
|
53 private: |
|
54 /** |
|
55 * Helper methods |
|
56 */ |
|
57 void DestroyData(); |
|
58 void DoCmdnewL(const TDesC& aSection); |
|
59 void DoCmdDestructor(); |
|
60 void DoCmdConstruct(const TDesC& aSection); |
|
61 void DoCmdCopyScreenToBitmapL(const TDesC& aSection); |
|
62 void DoCmdCreateContextL(const TDesC& aSection); |
|
63 void DoCmdCurrentScreenMode(const TDesC& aSection); |
|
64 void DoCmdGetCurrentScreenModeScale(const TDesC& aSection); |
|
65 void DoCmdGetCurrentScreenModeScaledOrigin(const TDesC& aSection); |
|
66 void DoCmdGetDefaultScreenModeOrigin(const TDesC& aSection); |
|
67 void DoCmdGetDefaultScreenSizeAndRotation(const TDesC& aSection); |
|
68 void DoCmdGetFontByIdL(const TDesC& aSection); |
|
69 void DoCmdGetRotationsListL(const TDesC& aSection); |
|
70 void DoCmdGetScreenModeDisplayMode(const TDesC& aSection); |
|
71 void DoCmdGetScreenModeOrigin(const TDesC& aSection); |
|
72 void DoCmdGetScreenModeScale(const TDesC& aSection); |
|
73 void DoCmdGetScreenModeScaledOrigin(const TDesC& aSection); |
|
74 void DoCmdGetScreenModeSizeAndRotation(const TDesC& aSection); |
|
75 void DoCmdGetScreenNumber(const TDesC& aSection); |
|
76 void DoCmdGetScreenSizeModeListL(const TDesC& aSection); |
|
77 void DoCmdNumScreenModes(const TDesC& aSection); |
|
78 void DoCmdPointerRect(const TDesC& aSection); |
|
79 void DoCmdRectCompare(const TDesC& aSection); |
|
80 void DoCmdScreenModeEnforcement(const TDesC& aSection); |
|
81 void DoCmdSetAppScreenMode(const TDesC& aSection); |
|
82 void DoCmdSetBackLight(const TDesC& aSection); |
|
83 void DoCmdSetCustomPaletteL(const TDesC& aSection); |
|
84 void DoCmdSetScreenSizeAndRotation(const TDesC& aSection); |
|
85 |
|
86 void DoCmdcheckPixels(const TDesC& aSection); |
|
87 void DoCmdcheckLineColor(const TDesC& aSection); |
|
88 void DoCmdcheckRectColor(const TDesC& aSection); |
|
89 |
|
90 private: |
|
91 CWsScreenDevice* iWsScreenDevice; |
|
92 }; |
|
93 |
|
94 #endif /* __T_GRAPHICS_WSERV_SCREENDEVICE_H__ */ |
|