|
1 /* |
|
2 * Copyright (c) 2007-2007 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 "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 #ifndef __TESTAPPMNGUI_APPVIEW_H__ |
|
20 #define __TESTAPPMNGUI_APPVIEW_H__ |
|
21 |
|
22 |
|
23 #include <coecntrl.h> |
|
24 |
|
25 /*! |
|
26 @class CtestappmnguiAppView |
|
27 |
|
28 @discussion An instance of the Application View object for the testappmngui |
|
29 example application |
|
30 */ |
|
31 class CtestappmnguiAppView : public CCoeControl |
|
32 { |
|
33 public: |
|
34 |
|
35 /*! |
|
36 @function NewL |
|
37 |
|
38 @discussion Create a CtestappmnguiAppView object, which will draw itself to aRect |
|
39 @param aRect the rectangle this view will be drawn to |
|
40 @result a pointer to the created instance of CtestappmnguiAppView |
|
41 */ |
|
42 static CtestappmnguiAppView* NewL(const TRect& aRect); |
|
43 |
|
44 /*! |
|
45 @function NewLC |
|
46 |
|
47 @discussion Create a CtestappmnguiAppView object, which will draw itself to aRect |
|
48 @param aRect the rectangle this view will be drawn to |
|
49 @result a pointer to the created instance of CtestappmnguiAppView |
|
50 */ |
|
51 static CtestappmnguiAppView* NewLC(const TRect& aRect); |
|
52 |
|
53 |
|
54 /*! |
|
55 @function ~CtestappmnguiAppView |
|
56 |
|
57 @discussion Destroy the object and release all memory objects |
|
58 */ |
|
59 ~CtestappmnguiAppView(); |
|
60 |
|
61 |
|
62 public: // from CCoeControl |
|
63 /*! |
|
64 @function Draw |
|
65 |
|
66 @discussion Draw this CtestappmnguiAppView to the screen |
|
67 @param aRect the rectangle of this view that needs updating |
|
68 */ |
|
69 void Draw(const TRect& aRect) const; |
|
70 |
|
71 |
|
72 private: |
|
73 |
|
74 /*! |
|
75 @function ConstructL |
|
76 |
|
77 @discussion Perform the second phase construction of a CtestappmnguiAppView object |
|
78 @param aRect the rectangle this view will be drawn to |
|
79 */ |
|
80 void ConstructL(const TRect& aRect); |
|
81 |
|
82 /*! |
|
83 @function CtestappmnguiAppView |
|
84 |
|
85 @discussion Perform the first phase of two phase construction |
|
86 */ |
|
87 CtestappmnguiAppView(); |
|
88 }; |
|
89 |
|
90 |
|
91 #endif // __TESTAPPMNGUI_APPVIEW_H__ |