equal
deleted
inserted
replaced
81 TBool hasNext = EFalse; |
81 TBool hasNext = EFalse; |
82 if ( iNextMenu >= iChildren.Count() ) |
82 if ( iNextMenu >= iChildren.Count() ) |
83 { |
83 { |
84 Reset(); |
84 Reset(); |
85 } |
85 } |
86 else if ( iChildren[iNextMenu]->IsItemSpecific() ) |
86 else if ( iChildren[iNextMenu]->MenuItemType() == EItemSpecific ) |
87 { |
87 { |
88 hasNext = ETrue; |
88 hasNext = ETrue; |
89 } |
89 } |
90 else |
90 else |
91 { |
91 { |
100 // --------------------------------------------------------------------------- |
100 // --------------------------------------------------------------------------- |
101 // |
101 // |
102 EXPORT_C CHnMenuItemModel* CHnMenuItemModel::GetNextSpecific() |
102 EXPORT_C CHnMenuItemModel* CHnMenuItemModel::GetNextSpecific() |
103 { |
103 { |
104 ASSERT( iNextMenu < iChildren.Count() ); |
104 ASSERT( iNextMenu < iChildren.Count() ); |
105 ASSERT( iChildren[iNextMenu]->IsItemSpecific() ); |
105 ASSERT( iChildren[iNextMenu]->MenuItemType() == EItemSpecific ); |
106 CHnMenuItemModel* nextSpecific = iChildren[ iNextMenu ]; |
106 CHnMenuItemModel* nextSpecific = iChildren[ iNextMenu ]; |
107 iNextMenu++; |
107 iNextMenu++; |
108 return nextSpecific; |
108 return nextSpecific; |
109 } |
109 } |
110 |
110 |
141 // --------------------------------------------------------------------------- |
141 // --------------------------------------------------------------------------- |
142 // |
142 // |
143 void CHnMenuItemModel::ConstructL( const TDesC& aName ) |
143 void CHnMenuItemModel::ConstructL( const TDesC& aName ) |
144 { |
144 { |
145 ASSERT( aName.Length() ); |
145 ASSERT( aName.Length() ); |
146 iItemSpecific = EFalse; |
146 iMenuItemType = EItemApplication; |
147 iName.CreateL( aName ); |
147 iName.CreateL( aName ); |
148 } |
148 } |
149 |
149 |
150 // --------------------------------------------------------------------------- |
150 // --------------------------------------------------------------------------- |
151 // |
151 // |
194 |
194 |
195 // --------------------------------------------------------------------------- |
195 // --------------------------------------------------------------------------- |
196 // |
196 // |
197 // --------------------------------------------------------------------------- |
197 // --------------------------------------------------------------------------- |
198 // |
198 // |
199 EXPORT_C void CHnMenuItemModel::SetItemSpecific( TBool aItemSpecific ) |
199 EXPORT_C void CHnMenuItemModel::SetMenuItemType( THnMenuItemType aMenuItemType ) |
200 { |
200 { |
201 iItemSpecific = aItemSpecific; |
201 iMenuItemType = aMenuItemType; |
202 } |
202 } |
203 |
203 |
204 // --------------------------------------------------------------------------- |
204 // --------------------------------------------------------------------------- |
205 // |
205 // |
206 // --------------------------------------------------------------------------- |
206 // --------------------------------------------------------------------------- |
207 // |
207 // |
208 EXPORT_C TBool CHnMenuItemModel::IsItemSpecific() |
208 EXPORT_C CHnMenuItemModel::THnMenuItemType CHnMenuItemModel::MenuItemType() |
209 { |
209 { |
210 return iItemSpecific; |
210 return iMenuItemType; |
211 } |
211 } |
212 |
212 |
213 // --------------------------------------------------------------------------- |
213 // --------------------------------------------------------------------------- |
214 // |
214 // |
215 // --------------------------------------------------------------------------- |
215 // --------------------------------------------------------------------------- |