|
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 the License "Symbian Foundation License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.symbianfoundation.org/legal/sfl-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_WINDOW_H__) |
|
20 #define __T_GRAPHICS_WSERV_WINDOW_H__ |
|
21 |
|
22 // User Includes |
|
23 #include "T_DataDrawableWindow.h" |
|
24 |
|
25 |
|
26 /** |
|
27 * Test Active Notification class |
|
28 * |
|
29 */ |
|
30 class CT_DataWindow : public CT_DataDrawableWindow |
|
31 { |
|
32 public: |
|
33 /** |
|
34 * Two phase constructor |
|
35 */ |
|
36 static CT_DataWindow* NewL(); |
|
37 |
|
38 /** |
|
39 * Public destructor |
|
40 */ |
|
41 ~CT_DataWindow(); |
|
42 |
|
43 /** |
|
44 * Return a pointer to the object that the data wraps |
|
45 * |
|
46 * \return pointer to the object that the data wraps |
|
47 */ |
|
48 virtual TAny* GetObject() { return iWindow; } |
|
49 |
|
50 /** |
|
51 * Set the object that the data wraps |
|
52 * |
|
53 * @param aObject object that the wrapper is testing |
|
54 * |
|
55 */ |
|
56 virtual void SetObjectL(TAny* aAny); |
|
57 |
|
58 /** |
|
59 * The object will no longer be owned by this |
|
60 * |
|
61 * @leave KErrNotSupported if the the function is not supported |
|
62 */ |
|
63 virtual void DisownObjectL(); |
|
64 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
65 |
|
66 protected: |
|
67 /** |
|
68 * Protected constructor. First phase construction |
|
69 */ |
|
70 CT_DataWindow(); |
|
71 |
|
72 |
|
73 /** |
|
74 * Second phase construction |
|
75 */ |
|
76 void ConstructL(); |
|
77 |
|
78 virtual RDrawableWindow* GetDrawableWindow() const; |
|
79 |
|
80 private: |
|
81 /** |
|
82 * Helper methods |
|
83 */ |
|
84 void DestroyData(); |
|
85 void DoCmdnewL(const TDesC& aSection); |
|
86 void DoCmdConstructL(const TDesC& aSection); |
|
87 void DoCmdBeginRedraw(const TDesC& aSection); |
|
88 void DoCmdEndRedraw(); |
|
89 void DoCmdInvalidate(const TDesC& aSection); |
|
90 void DoCmdGetInvalidRegionL(const TDesC& aSection); |
|
91 void DoCmdSetBackgroundColor(const TDesC& aSection); |
|
92 void DoCmdSetSize(const TDesC& aSection); |
|
93 void DoCmdSetExtent(const TDesC& aSection); |
|
94 void DoCmdHandleTransparencyUpdate(); |
|
95 void DoCmdSetTransparencyFactor(const TDesC& aSection); |
|
96 void DoCmdSetTransparencyBitmapL(const TDesC& aSection); |
|
97 void DoCmdSetTransparencyWsBitmapL(const TDesC& aSection); |
|
98 void DoCmdSetNonTransparent(); |
|
99 void DoCmdEnableRedrawStore(const TDesC& aSection); |
|
100 void DoCmdSetTransparencyAlphaChannel(); |
|
101 void DoCmdSetTransparentRegionL(const TDesC& aSection); |
|
102 void DoCmdSetTransparencyPolicy(const TDesC& aSection); |
|
103 void DoCmdIsRedrawStoreEnabled(const TDesC& aSection); |
|
104 void DoCmdEnableOSB(const TDesC& aSection); |
|
105 void DoCmdSave(); |
|
106 |
|
107 private: |
|
108 RWindow* iWindow; |
|
109 }; |
|
110 #endif /* __T_GRAPHICS_WSERV_WINDOW_H__ */ |