equal
deleted
inserted
replaced
23 #include "hnsuiteobserver.h" |
23 #include "hnsuiteobserver.h" |
24 #include "hnsuitemodel.h" |
24 #include "hnsuitemodel.h" |
25 #include "hnitemmodel.h" |
25 #include "hnitemmodel.h" |
26 #include "hnattributebase.h" |
26 #include "hnattributebase.h" |
27 #include "hnattributeimage.h" |
27 #include "hnattributeimage.h" |
|
28 #include "hnmenuitemmodel.h" |
28 |
29 |
29 // ----------------------------------------------------------------------------- |
30 // ----------------------------------------------------------------------------- |
30 // |
31 // |
31 // ----------------------------------------------------------------------------- |
32 // ----------------------------------------------------------------------------- |
32 // |
33 // |
193 break; |
194 break; |
194 } |
195 } |
195 } |
196 } |
196 } |
197 } |
197 |
198 |
|
199 // ----------------------------------------------------------------------------- |
|
200 // |
|
201 // ----------------------------------------------------------------------------- |
|
202 // |
|
203 TInt CMmListBoxModel::GetNumberOfSpecificMenuItemsL( TInt aItemIndex ) |
|
204 { |
|
205 TInt itemSpecificMenuItemCount = KErrNotFound; |
|
206 if ( iSuiteModel ) |
|
207 { |
|
208 TInt itemId = iSuiteModel->IdByIndex( aItemIndex ); |
|
209 if ( itemId != KErrNotFound ) |
|
210 { |
|
211 itemSpecificMenuItemCount = 0; |
|
212 MHnMenuItemModelIterator* menuItemModelIter = |
|
213 iSuiteModel->GetMenuStructureL( itemId ); |
|
214 while ( menuItemModelIter && menuItemModelIter->HasNextSpecific() ) |
|
215 { |
|
216 menuItemModelIter->GetNextSpecific(); |
|
217 ++itemSpecificMenuItemCount; |
|
218 } |
|
219 } |
|
220 } |
|
221 return itemSpecificMenuItemCount; |
|
222 } |
|
223 |
198 // End of file |
224 // End of file |