|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * ============================================================================ |
|
20 * Name : SatelliteReferenceContainer |
|
21 * Part of : Satellite Reference App |
|
22 * ============================================================================ |
|
23 */ |
|
24 |
|
25 #ifndef SATELLITE_REFERENCE_CONTAINER_H |
|
26 #define SATELLITE_REFERENCE_CONTAINER_H |
|
27 |
|
28 // INCLUDES |
|
29 #include <coecntrl.h> |
|
30 #include <aknappui.h> |
|
31 |
|
32 // FORWARD DECLARATIONS |
|
33 class CEikLabel; // for example labels |
|
34 |
|
35 // CLASS DECLARATION |
|
36 |
|
37 /** |
|
38 * CSatelliteReferenceContainer container control class. |
|
39 * |
|
40 */ |
|
41 class CSatelliteReferenceContainer : public CCoeControl, MCoeControlObserver |
|
42 { |
|
43 public: // Constructors and destructor |
|
44 |
|
45 /** |
|
46 * EPOC default constructor. |
|
47 * @param aRect Frame rectangle for container. |
|
48 */ |
|
49 void ConstructL(const TRect& aRect, CAknAppUi* aAppUi); |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 ~CSatelliteReferenceContainer(); |
|
55 |
|
56 /** |
|
57 * To handle layout change event |
|
58 */ |
|
59 void HandleResourceChange(TInt aType); |
|
60 |
|
61 private: // Functions from base classes |
|
62 |
|
63 /** |
|
64 * From CoeControl,SizeChanged. |
|
65 */ |
|
66 void SizeChanged(); |
|
67 |
|
68 /** |
|
69 * From CoeControl,CountComponentControls. |
|
70 */ |
|
71 TInt CountComponentControls() const; |
|
72 |
|
73 /** |
|
74 * From CCoeControl,ComponentControl. |
|
75 */ |
|
76 CCoeControl* ComponentControl(TInt aIndex) const; |
|
77 |
|
78 /** |
|
79 * From CCoeControl,Draw. |
|
80 */ |
|
81 void Draw(const TRect& aRect) const; |
|
82 |
|
83 /** |
|
84 * From ?base_class ?member_description |
|
85 */ |
|
86 // event handling section |
|
87 // e.g Listbox events |
|
88 void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType); |
|
89 |
|
90 private: |
|
91 CAknAppUi* iAppUi; |
|
92 }; |
|
93 |
|
94 #endif |
|
95 |
|
96 // End of File |