1 /* |
|
2 * Copyright (c) 2002-2005 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: Declares container control for application. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef AIWTESTCONTAINER_H |
|
19 #define AIWTESTCONTAINER_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <coecntrl.h> |
|
23 |
|
24 // FORWARD DECLARATIONS |
|
25 class CEikLabel; // for example labels |
|
26 |
|
27 // CLASS DECLARATION |
|
28 |
|
29 /** |
|
30 * CAiwTestContainer container control class. |
|
31 */ |
|
32 class CAiwTestContainer : public CCoeControl, MCoeControlObserver |
|
33 { |
|
34 public: // Constructors and destructor |
|
35 /** |
|
36 * EPOC default constructor. |
|
37 * @param aRect Frame rectangle for container. |
|
38 */ |
|
39 void ConstructL(const TRect& aRect); |
|
40 |
|
41 /** |
|
42 * Destructor. |
|
43 */ |
|
44 virtual ~CAiwTestContainer(); |
|
45 |
|
46 void SetLabelL(TDesC& aText); |
|
47 |
|
48 public: // New functions |
|
49 |
|
50 public: // Functions from base classes |
|
51 |
|
52 private: // Functions from base classes |
|
53 |
|
54 /** |
|
55 * From CoeControl,SizeChanged. |
|
56 */ |
|
57 void SizeChanged(); |
|
58 |
|
59 /** |
|
60 * From CoeControl,CountComponentControls. |
|
61 */ |
|
62 TInt CountComponentControls() const; |
|
63 |
|
64 /** |
|
65 * From CCoeControl,ComponentControl. |
|
66 */ |
|
67 CCoeControl* ComponentControl(TInt aIndex) const; |
|
68 |
|
69 /** |
|
70 * From CCoeControl,Draw. |
|
71 */ |
|
72 void Draw(const TRect& aRect) const; |
|
73 |
|
74 /** |
|
75 * From MCoeControlObserver |
|
76 * Acts upon changes in the hosted control's state. |
|
77 * |
|
78 * @param aControl The control changing its state |
|
79 * @param aEventType The type of control event |
|
80 */ |
|
81 void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType); |
|
82 |
|
83 private: //data |
|
84 |
|
85 CEikLabel* iLabel; // example label |
|
86 CEikLabel* iToDoLabel; // example label |
|
87 }; |
|
88 |
|
89 #endif |
|
90 |
|
91 // End of File |
|