|
1 /* |
|
2 * Copyright (c) 2002 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 * Logs "GPRS counter" view container control class implementation |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __Logs_App_CGprsCtControlContainer_H__ |
|
21 #define __Logs_App_CGprsCtControlContainer_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include "CLogsBaseControlContainer.h" |
|
25 |
|
26 // CONSTANTS |
|
27 |
|
28 // MACROS |
|
29 |
|
30 // DATA TYPES |
|
31 |
|
32 // FUNCTION PROTOTYPES |
|
33 |
|
34 // FORWARD DECLARATIONS |
|
35 class CLogsBaseView; |
|
36 class CAknDoubleLargeStyleListBox; |
|
37 |
|
38 |
|
39 // CLASS DECLARATION |
|
40 |
|
41 /** |
|
42 * Logs "GPRS counter" view container control class implementation. |
|
43 */ |
|
44 class CGprsCtControlContainer : public CLogsBaseControlContainer |
|
45 { |
|
46 public: // interface |
|
47 /** |
|
48 * Standard creation function. |
|
49 * |
|
50 * @param aAppView this control's application view. |
|
51 * @param aRect rect size |
|
52 */ |
|
53 static CGprsCtControlContainer* NewL |
|
54 ( CLogsBaseView* aAppView |
|
55 , const TRect& aRect |
|
56 ); |
|
57 |
|
58 /** |
|
59 * Destructor. Deletes child controls. |
|
60 */ |
|
61 ~CGprsCtControlContainer(); |
|
62 |
|
63 public: |
|
64 /** |
|
65 * Returns the iListBox. |
|
66 * |
|
67 * @return listbox control |
|
68 */ |
|
69 CAknDoubleLargeStyleListBox* ListBox(); |
|
70 |
|
71 /** |
|
72 * Update contents |
|
73 */ |
|
74 void UpdateL(); |
|
75 |
|
76 private: |
|
77 /** |
|
78 * Constructor, second phase. |
|
79 * |
|
80 * @param aRect rect size |
|
81 */ |
|
82 void ConstructL( const TRect& aRect ); |
|
83 |
|
84 /** |
|
85 * C++ default constructor |
|
86 */ |
|
87 CGprsCtControlContainer( CLogsBaseView* aAppView ); |
|
88 |
|
89 /** |
|
90 * Handles focus change events. This will hand over focus changes to list so that |
|
91 * focus animations are displayed on the list. |
|
92 */ |
|
93 void FocusChanged(TDrawNow aDrawNow); |
|
94 |
|
95 protected: // from CCoeControl |
|
96 /** |
|
97 * Returns the child controls at aIndex. |
|
98 * |
|
99 * @param aIndex Index of the control. |
|
100 * |
|
101 * @return Sub control from the aIndex. |
|
102 */ |
|
103 CCoeControl* ComponentControl( TInt aIndex ) const; |
|
104 |
|
105 /** |
|
106 * Called when control's size changed. |
|
107 */ |
|
108 void SizeChanged(); |
|
109 |
|
110 void GetHelpContext( TCoeHelpContext& aContext ) const; |
|
111 |
|
112 protected: // CLogsBaseControlContainer |
|
113 /** |
|
114 * Called from HandleResourceChange. Calls AddIconL funtion |
|
115 * for each icon in the list box. |
|
116 * |
|
117 */ |
|
118 void AddControlContainerIconsL(); |
|
119 |
|
120 private: // data |
|
121 /// Ref: The application view whose control container this class is. |
|
122 CLogsBaseView* iAppView; |
|
123 |
|
124 /// Own: ListBox style |
|
125 CAknDoubleLargeStyleListBox* iListBox; |
|
126 }; |
|
127 |
|
128 #endif // __Logs_App_CGprsCtControlContainer_H__ |
|
129 |
|
130 // End of File |
|
131 |