equal
deleted
inserted
replaced
120 self->ConstructL( aUri, aMediaId ); |
120 self->ConstructL( aUri, aMediaId ); |
121 return self; |
121 return self; |
122 } |
122 } |
123 |
123 |
124 CMdEObject::CMdEObject(CMdESession* aSession, TItemId aId, CMdEObjectDef& aDef) |
124 CMdEObject::CMdEObject(CMdESession* aSession, TItemId aId, CMdEObjectDef& aDef) |
125 : CMdEInstanceItem( aSession, aId ), iDef( &aDef ) |
125 : CMdEInstanceItem( aSession, aId ), iDef( &aDef ), iUri( NULL ) |
126 { |
126 { |
127 } |
127 } |
128 |
128 |
129 void CMdEObject::ConstructL( const TDesC& aUri, TUint32 aMediaId ) |
129 void CMdEObject::ConstructL( const TDesC& aUri, TUint32 aMediaId ) |
130 { |
130 { |
143 { |
143 { |
144 TRAP_IGNORE( Session().CancelObjectL( *this ) ); |
144 TRAP_IGNORE( Session().CancelObjectL( *this ) ); |
145 } |
145 } |
146 |
146 |
147 delete iUri; |
147 delete iUri; |
|
148 iUri = NULL; |
148 |
149 |
149 iPropertyArray.ResetAndDestroy(); |
150 iPropertyArray.ResetAndDestroy(); |
150 iPropertyArray.Close(); |
151 iPropertyArray.Close(); |
151 |
152 |
152 iFreeTextArray.ResetAndDestroy(); |
153 iFreeTextArray.ResetAndDestroy(); |
274 iUri = NULL; |
275 iUri = NULL; |
275 } |
276 } |
276 } |
277 } |
277 |
278 |
278 iUri = HBufC::NewL( aUri.Length() ); |
279 iUri = HBufC::NewL( aUri.Length() ); |
|
280 // Note: CopyLC doesn't push anything to cleanup stack |
279 iUri->Des().CopyLC( aUri ); |
281 iUri->Des().CopyLC( aUri ); |
280 iFlags |= EMdEObjectFlagModObject; |
282 iFlags |= EMdEObjectFlagModObject; |
281 } |
283 } |
282 |
284 |
283 EXPORT_C TInt CMdEObject::PropertyCount() const |
285 EXPORT_C TInt CMdEObject::PropertyCount() const |