145 TN_DEBUG1( "CThumbAGImageObserver::~CThumbAGImageObserver() - begin" ); |
145 TN_DEBUG1( "CThumbAGImageObserver::~CThumbAGImageObserver() - begin" ); |
146 |
146 |
147 iShutdown = ETrue; |
147 iShutdown = ETrue; |
148 |
148 |
149 delete iMDSShutdownObserver; |
149 delete iMDSShutdownObserver; |
150 iMDSShutdownObserver = NULL; |
|
151 |
|
152 delete iShutdownObserver; |
150 delete iShutdownObserver; |
153 iShutdownObserver = NULL; |
|
154 |
151 |
155 if(iReconnect) |
152 if(iReconnect) |
156 { |
153 { |
157 iReconnect->Cancel(); |
154 iReconnect->Cancel(); |
158 delete iReconnect; |
155 delete iReconnect; |
289 CMdEObjectDef& imageDef = defaultNamespace.GetObjectDefL( MdeConstants::Image::KImageObject ); |
286 CMdEObjectDef& imageDef = defaultNamespace.GetObjectDefL( MdeConstants::Image::KImageObject ); |
290 |
287 |
291 // set observing conditions |
288 // set observing conditions |
292 CMdELogicCondition* addCondition = CMdELogicCondition::NewLC( ELogicConditionOperatorAnd ); |
289 CMdELogicCondition* addCondition = CMdELogicCondition::NewLC( ELogicConditionOperatorAnd ); |
293 addCondition->AddObjectConditionL( imageDef ); |
290 addCondition->AddObjectConditionL( imageDef ); |
294 |
291 addCondition->AddPropertyConditionL( originPropDef, TMdEUintNotEqual(MdeConstants::Object::ECamera)); |
295 addCondition->AddPropertyConditionL( originPropDef, TMdEUintNotEqual(MdeConstants::Object::ECamera)); |
292 CleanupStack::Pop( addCondition ); |
296 |
293 |
297 CMdELogicCondition* modifyCondition = CMdELogicCondition::NewLC( ELogicConditionOperatorAnd ); |
294 CMdELogicCondition* modifyCondition = CMdELogicCondition::NewLC( ELogicConditionOperatorAnd ); |
298 modifyCondition->AddObjectConditionL( imageDef ); |
295 modifyCondition->AddObjectConditionL( imageDef ); |
299 |
296 addCondition->AddPropertyConditionL( originPropDef, TMdEUintNotEqual(MdeConstants::Object::ECamera)); |
300 modifyCondition->AddPropertyConditionL( originPropDef, TMdEUintNotEqual(MdeConstants::Object::ECamera)); |
297 CleanupStack::Pop( modifyCondition ); |
301 |
298 |
302 // add observers |
299 // add observers |
303 iMdESession->AddObjectObserverL( *this, addCondition, ENotifyAdd ); |
300 iMdESession->AddObjectObserverL( *this, addCondition, ENotifyAdd ); |
304 |
301 |
305 // modify observer |
302 // modify observer |
306 iMdESession->AddObjectObserverL( *this, modifyCondition, ENotifyModify ); |
303 iMdESession->AddObjectObserverL( *this, modifyCondition, ENotifyModify ); |
307 |
304 |
308 CleanupStack::Pop( 2, addCondition ); |
|
309 |
|
310 TN_DEBUG1( "CThumbAGImageObserver::AddObserversL() - end" ); |
305 TN_DEBUG1( "CThumbAGImageObserver::AddObserversL() - end" ); |
311 } |
306 } |
312 |
307 |
313 |
308 |
314 // ----------------------------------------------------------------------------- |
309 // ----------------------------------------------------------------------------- |