168 // Returns the number of controls owned |
168 // Returns the number of controls owned |
169 // --------------------------------------------------------- |
169 // --------------------------------------------------------- |
170 // |
170 // |
171 TInt CCamBurstThumbnailContainer::CountComponentControls() const |
171 TInt CCamBurstThumbnailContainer::CountComponentControls() const |
172 { |
172 { |
173 return 1; // Return the number of controls inside this container |
173 return CCamContainerBase::CountComponentControls() + 1; // Return the number of controls inside this container |
174 } |
174 } |
175 |
175 |
176 // --------------------------------------------------------- |
176 // --------------------------------------------------------- |
177 // CCamBurstThumbnailContainer::ComponentControl |
177 // CCamBurstThumbnailContainer::ComponentControl |
178 // Return pointer to a contained control |
178 // Return pointer to a contained control |
179 // --------------------------------------------------------- |
179 // --------------------------------------------------------- |
180 // |
180 // |
181 CCoeControl* CCamBurstThumbnailContainer::ComponentControl( TInt aIndex ) const |
181 CCoeControl* CCamBurstThumbnailContainer::ComponentControl( TInt aIndex ) const |
182 { |
182 { |
|
183 CCoeControl* control = NULL; |
|
184 control = CCamContainerBase::ComponentControl( aIndex ); |
|
185 if( control != NULL ) |
|
186 return control; |
183 switch ( aIndex ) |
187 switch ( aIndex ) |
184 { |
188 { |
185 case 0: |
189 case 1: |
186 { |
190 { |
187 return iGridControl; |
191 control = iGridControl; |
188 } |
192 } |
|
193 break; |
189 default: |
194 default: |
190 break; |
195 break; |
191 } |
196 } |
192 |
197 |
193 // Should never get here |
198 return control; |
194 return NULL; |
|
195 } |
199 } |
196 |
200 |
197 |
201 |
198 // --------------------------------------------------------- |
202 // --------------------------------------------------------- |
199 // CCamBurstThumbnailContainer::Draw |
203 // CCamBurstThumbnailContainer::Draw |