mtpdataproviders/mtpimagedp/src/cmtpimagedpmdeobserver.cpp
changeset 18 1b39655331a3
parent 17 aabe5387f5ce
child 47 63cf70d3ecd8
equal deleted inserted replaced
17:aabe5387f5ce 18:1b39655331a3
   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;