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_BLANKWINDOW_H__) |
|
20 #define __T_GRAPHICS_WSERV_BLANKWINDOW_H__ |
|
21 |
|
22 // User Includes |
|
23 #include "T_DataWindowBase.h" |
|
24 |
|
25 /** |
|
26 * Test Active Notification class |
|
27 * |
|
28 */ |
|
29 class CT_DataBlankWindow : public CT_DataWindowBase |
|
30 { |
|
31 public: |
|
32 /** |
|
33 * Two phase constructor |
|
34 */ |
|
35 static CT_DataBlankWindow* NewL(); |
|
36 |
|
37 /** |
|
38 * Public destructor |
|
39 */ |
|
40 ~CT_DataBlankWindow(); |
|
41 |
|
42 /** |
|
43 * Return a pointer to the object that the data wraps |
|
44 * |
|
45 * @return pointer to the object that the data wraps |
|
46 */ |
|
47 virtual TAny* GetObject() { return iBlankWindow; } |
|
48 |
|
49 /** |
|
50 * Set the object that the data wraps |
|
51 * |
|
52 * @param aObject object that the wrapper is testing |
|
53 * |
|
54 */ |
|
55 virtual void SetObjectL(TAny* aAny); |
|
56 |
|
57 /** |
|
58 * The object will no longer be owned by this |
|
59 * |
|
60 * @leave KErrNotSupported if the the function is not supported |
|
61 */ |
|
62 virtual void DisownObjectL(); |
|
63 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
64 |
|
65 protected: |
|
66 /** |
|
67 * Protected constructor. First phase construction |
|
68 */ |
|
69 CT_DataBlankWindow(); |
|
70 |
|
71 /** |
|
72 * Second phase construction |
|
73 */ |
|
74 void ConstructL(); |
|
75 |
|
76 virtual RWindowBase* GetWindowBase() const; |
|
77 |
|
78 private: |
|
79 /** |
|
80 * Helper methods |
|
81 */ |
|
82 void DestroyData(); |
|
83 void DoCmdnewL(const TDesC& aSection); |
|
84 void DoCmdConstructL(const TDesC& aSection); |
|
85 void DoCmdSetColor(const TDesC& aSection); |
|
86 void DoCmdSetSize(const TDesC& aSection); |
|
87 void DoCmdSetExtent(const TDesC& aSection); |
|
88 |
|
89 private: |
|
90 RBlankWindow* iBlankWindow; |
|
91 }; |
|
92 |
|
93 #endif /* __T_GRAPHICS_WSERV_BLANKWINDOW_H__ */ |
|