307 CMdEObjectDef& audioDef = defaultNamespace.GetObjectDefL( MdeConstants::Audio::KAudioObject ); |
307 CMdEObjectDef& audioDef = defaultNamespace.GetObjectDefL( MdeConstants::Audio::KAudioObject ); |
308 |
308 |
309 // set observing conditions |
309 // set observing conditions |
310 CMdELogicCondition* addCondition = CMdELogicCondition::NewLC( ELogicConditionOperatorAnd ); |
310 CMdELogicCondition* addCondition = CMdELogicCondition::NewLC( ELogicConditionOperatorAnd ); |
311 addCondition->AddObjectConditionL( audioDef ); |
311 addCondition->AddObjectConditionL( audioDef ); |
|
312 CleanupStack::Pop( addCondition ); |
312 |
313 |
313 CMdELogicCondition* modifyCondition = CMdELogicCondition::NewLC( ELogicConditionOperatorAnd ); |
314 CMdELogicCondition* modifyCondition = CMdELogicCondition::NewLC( ELogicConditionOperatorAnd ); |
314 modifyCondition->AddObjectConditionL( audioDef ); |
315 modifyCondition->AddObjectConditionL( audioDef ); |
|
316 CleanupStack::Pop( modifyCondition ); |
315 |
317 |
316 // add observer |
318 // add observer |
317 iMdESession->AddObjectObserverL( *this, addCondition, ENotifyAdd ); |
319 iMdESession->AddObjectObserverL( *this, addCondition, ENotifyAdd ); |
318 |
320 |
319 // modify observer |
321 // modify observer |
320 iMdESession->AddObjectObserverL( *this, modifyCondition, ENotifyModify ); |
322 iMdESession->AddObjectObserverL( *this, modifyCondition, ENotifyModify ); |
321 |
|
322 CleanupStack::Pop( 2, addCondition ); |
|
323 |
323 |
324 TN_DEBUG1( "CThumbAGAudioObserver::AddObserversL() - end" ); |
324 TN_DEBUG1( "CThumbAGAudioObserver::AddObserversL() - end" ); |
325 } |
325 } |
326 |
326 |
327 // --------------------------------------------------------------------------- |
327 // --------------------------------------------------------------------------- |