equal
deleted
inserted
replaced
144 return ret; |
144 return ret; |
145 } |
145 } |
146 CMenuItem* item = iListItems[ aIndex ]; |
146 CMenuItem* item = iListItems[ aIndex ]; |
147 |
147 |
148 TBool attrExists; |
148 TBool attrExists; |
149 TPtrC itm; |
149 TPtrC itm( KNullDesC ); |
150 TRAP_IGNORE( |
150 TRAP_IGNORE( |
151 itm.Set( item->GetAttributeL( KMenuAttrLongName, attrExists ) ); |
151 itm.Set( item->GetAttributeL( KMenuAttrLongName, attrExists ) ); |
152 ) |
152 ) |
|
153 |
153 return itm; |
154 return itm; |
154 } |
155 } |
155 |
156 |
156 // --------------------------------------------------------------------------- |
157 // --------------------------------------------------------------------------- |
157 // From class MMsvSessionObserver. |
158 // From class MMsvSessionObserver. |
193 // check if the item is folder |
194 // check if the item is folder |
194 for ( TInt j = 0; j < aProperties.Count(); j++ ) |
195 for ( TInt j = 0; j < aProperties.Count(); j++ ) |
195 { |
196 { |
196 if( aProperties[j]->Name() == KType ) |
197 if( aProperties[j]->Name() == KType ) |
197 { |
198 { |
198 |
|
199 if ( aProperties[j]->Value() == KProperValueFolder ) |
199 if ( aProperties[j]->Value() == KProperValueFolder ) |
200 { |
200 { |
201 isFolder = ETrue; |
201 isFolder = ETrue; |
202 } |
202 } |
203 break; |
203 break; |
204 } |
204 } |
205 } |
205 } |
206 |
206 |
207 TBool itemFound( EFalse ); |
207 TBool itemFound( EFalse ); |
208 |
208 |
209 // compare name/value pairs with every menu item in the list |
209 // compare name/value pairs with every menu item in the list |
210 for ( TInt i = 0; i < iListItems.Count() && !itemFound; i++ ) |
210 for ( TInt i = 0; i < iListItems.Count() && !itemFound; i++ ) |
211 { |
211 { |
212 TBool match( ETrue ); |
212 TBool match( ETrue ); |
213 CMenuItem* item = iListItems[ i ]; |
213 CMenuItem* item = iListItems[ i ]; |
214 |
|
215 for ( TInt j = 0; j < aProperties.Count() && match; j++ ) |
214 for ( TInt j = 0; j < aProperties.Count() && match; j++ ) |
216 { |
215 { |
217 // type and locked properties skipped |
216 // type and locked properties skipped |
218 if ( aProperties[j]->Name() != KType && |
217 if ( aProperties[j]->Name() != KType && |
219 aProperties[j]->Name() != KItemLocked ) |
218 aProperties[j]->Name() != KItemLocked ) |