equal
deleted
inserted
replaced
124 |
124 |
125 WRITELOG1( "CMdeObjectHandler::SetMetadataObjectL() - AlbumID: %d", albumId ); |
125 WRITELOG1( "CMdeObjectHandler::SetMetadataObjectL() - AlbumID: %d", albumId ); |
126 CMdERelation* relation = |
126 CMdERelation* relation = |
127 iMdeSession->NewRelationLC( |
127 iMdeSession->NewRelationLC( |
128 albumRelationDef, albumId, objectId, 0 ); |
128 albumRelationDef, albumId, objectId, 0 ); |
129 relationEventArray.Append( STATIC_CAST( CMdEInstanceItem*, relation ) ); |
129 relationEventArray.AppendL( STATIC_CAST( CMdEInstanceItem*, relation ) ); |
130 CleanupStack::Pop(); //relation |
130 CleanupStack::Pop(); //relation |
131 } |
131 } |
132 } |
132 } |
133 } |
133 } |
134 |
134 |
138 const TItemId objectId = mdeObject.Id(); |
138 const TItemId objectId = mdeObject.Id(); |
139 if ( objectId != 0 ) |
139 if ( objectId != 0 ) |
140 { |
140 { |
141 CMdEEvent* event = iMdeSession->NewEventLC( |
141 CMdEEvent* event = iMdeSession->NewEventLC( |
142 *eventDef, objectId, time ); |
142 *eventDef, objectId, time ); |
143 relationEventArray.Append( STATIC_CAST( CMdEInstanceItem*, event ) ); |
143 relationEventArray.AppendL( STATIC_CAST( CMdEInstanceItem*, event ) ); |
144 CleanupStack::Pop(); // event |
144 CleanupStack::Pop(); // event |
145 } |
145 } |
146 } |
146 } |
147 |
147 |
148 if ( relationEventArray.Count() > 0 ) |
148 if ( relationEventArray.Count() > 0 ) |