equal
deleted
inserted
replaced
126 // Returns the number of controls owned |
126 // Returns the number of controls owned |
127 // --------------------------------------------------------- |
127 // --------------------------------------------------------- |
128 // |
128 // |
129 TInt CCamStandbyContainer::CountComponentControls() const |
129 TInt CCamStandbyContainer::CountComponentControls() const |
130 { |
130 { |
131 TInt count = 1; |
131 return CCamContainerBase::CountComponentControls() + 1; |
132 return count; // Return the number of controls inside this container |
|
133 } |
132 } |
134 |
133 |
135 // --------------------------------------------------------- |
134 // --------------------------------------------------------- |
136 // CCamStandbyContainer::ComponentControl |
135 // CCamStandbyContainer::ComponentControl |
137 // Return pointer to a contained control |
136 // Return pointer to a contained control |
138 // --------------------------------------------------------- |
137 // --------------------------------------------------------- |
139 // |
138 // |
140 CCoeControl* CCamStandbyContainer::ComponentControl( TInt aIndex ) const |
139 CCoeControl* CCamStandbyContainer::ComponentControl( TInt aIndex ) const |
141 { |
140 { |
|
141 CCoeControl* control = CCamContainerBase::ComponentControl( aIndex ); |
|
142 if( control ) |
|
143 return control; |
142 switch ( aIndex ) |
144 switch ( aIndex ) |
143 { |
145 { |
144 case 0: |
146 case 1: |
145 { |
147 { |
146 return iText; |
148 control = iText; |
147 } |
149 } |
|
150 break; |
148 default: |
151 default: |
149 { |
152 break; |
150 return NULL; |
153 } |
151 } |
154 return control; |
152 } |
|
153 } |
155 } |
154 |
156 |
155 // --------------------------------------------------------- |
157 // --------------------------------------------------------- |
156 // CCamStandbyContainer::Draw |
158 // CCamStandbyContainer::Draw |
157 // Draw control |
159 // Draw control |