equal
deleted
inserted
replaced
207 |
207 |
208 CMdENamespaceDef& def = mdeSession.GetDefaultNamespaceDefL(); |
208 CMdENamespaceDef& def = mdeSession.GetDefaultNamespaceDefL(); |
209 CMdEObjectDef& imageObjDef = def.GetObjectDefL(MdeConstants::Image::KImageObject); |
209 CMdEObjectDef& imageObjDef = def.GetObjectDefL(MdeConstants::Image::KImageObject); |
210 |
210 |
211 //Only subscribe add observer |
211 //Only subscribe add observer |
212 CMdELogicCondition* addCondition = CMdELogicCondition::NewLC(ELogicConditionOperatorAnd); |
212 CMdELogicCondition* addCondition = CMdELogicCondition::NewLC(ELogicConditionOperatorAnd); |
213 CMdEPropertyDef& itemTypePropDef = imageObjDef.GetPropertyDefL(MdeConstants::Object::KItemTypeProperty); |
|
214 addCondition->AddObjectConditionL(imageObjDef); |
213 addCondition->AddObjectConditionL(imageObjDef); |
215 mdeSession.AddObjectObserverL(*this, addCondition, ENotifyAdd); |
214 mdeSession.AddObjectObserverL(*this, addCondition, ENotifyAdd); |
216 CleanupStack::Pop(addCondition); |
215 CleanupStack::Pop(addCondition); |
217 |
216 |
218 iSubscribed = ETrue; |
217 iSubscribed = ETrue; |