|
1 /* |
|
2 * Copyright (c) 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: App view displays 2 labels. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __HTIADMIN_APPVIEW_H__ |
|
20 #define __HTIADMIN_APPVIEW_H__ |
|
21 |
|
22 // INCLUDES |
|
23 #include <coecntrl.h> |
|
24 |
|
25 // CONSTANTS |
|
26 const static TInt KMaxDisplayText = 64; |
|
27 |
|
28 // CLASS DECLARATION |
|
29 /** |
|
30 An instance of the Application View object for the HtiAdmin |
|
31 example application |
|
32 */ |
|
33 class CHtiAdminAppView : public CCoeControl |
|
34 { |
|
35 public: |
|
36 |
|
37 /** |
|
38 Create a CHtiAdminAppView object, which will draw itself to aRect |
|
39 @param aRect the rectangle this view will be drawn to |
|
40 @return a pointer to the created instance of CHtiAdminAppView |
|
41 */ |
|
42 static CHtiAdminAppView* NewL(const TRect& aRect); |
|
43 |
|
44 /** |
|
45 Create a CHtiAdminAppView object, which will draw itself to aRect |
|
46 @param aRect the rectangle this view will be drawn to |
|
47 @return a pointer to the created instance of CHtiAdminAppView |
|
48 */ |
|
49 static CHtiAdminAppView* NewLC(const TRect& aRect); |
|
50 |
|
51 |
|
52 /** |
|
53 Destroy the object and release all memory objects |
|
54 */ |
|
55 ~CHtiAdminAppView(); |
|
56 |
|
57 /** |
|
58 Set text for the labels in the view. |
|
59 */ |
|
60 void SetCaption( const TDesC& aText ); |
|
61 void SetStatus( const TDesC& aText ); |
|
62 void SetVersionCaption( const TDesC& aText ); |
|
63 void SetVersion( const TDesC& aText ); |
|
64 void SetAutoStartCaption( const TDesC& aText ); |
|
65 void SetAutoStartStatus( const TDesC& aText ); |
|
66 void SetSelectedCommCaption( const TDesC& aText ); |
|
67 void SetSelectedComm( const TDesC& aText ); |
|
68 void SetCommDetails( const TDesC& aText ); |
|
69 |
|
70 public: // from CCoeControl |
|
71 /** |
|
72 Draw this CHtiAdminAppView to the screen |
|
73 @param aRect the rectangle of this view that needs updating |
|
74 */ |
|
75 void Draw( const TRect& aRect ) const; |
|
76 |
|
77 |
|
78 private: |
|
79 |
|
80 /** |
|
81 Perform the second phase construction of a CHtiAdminAppView object |
|
82 @param aRect the rectangle this view will be drawn to |
|
83 */ |
|
84 void ConstructL( const TRect& aRect ); |
|
85 |
|
86 /** |
|
87 Perform the first phase of two phase construction |
|
88 */ |
|
89 CHtiAdminAppView(); |
|
90 |
|
91 private: |
|
92 /** |
|
93 text to show in the view |
|
94 */ |
|
95 HBufC* iHtiCaption; |
|
96 HBufC* iHtiStatus; |
|
97 HBufC* iHtiVersionCaption; |
|
98 HBufC* iHtiVersion; |
|
99 HBufC* iHtiAutoStartCaption; |
|
100 HBufC* iHtiAutoStartStatus; |
|
101 HBufC* iHtiSelectedCommCaption; |
|
102 HBufC* iHtiSelectedComm; |
|
103 HBufC* iHtiCommDetails; |
|
104 }; |
|
105 |
|
106 |
|
107 #endif // __HTIADMIN_APPVIEW_H__ |
|
108 |
|
109 |
|
110 // End of File |