equal
deleted
inserted
replaced
2274 } |
2274 } |
2275 |
2275 |
2276 CMdENotifierAO* notifier = CMdENotifierAO::NewLC( *this, iSession ); |
2276 CMdENotifierAO* notifier = CMdENotifierAO::NewLC( *this, iSession ); |
2277 notifier->RegisterL( type, &aObserver, aCondition, *namespaceDef ); |
2277 notifier->RegisterL( type, &aObserver, aCondition, *namespaceDef ); |
2278 |
2278 |
|
2279 iNotifiers.AppendL( notifier ); |
2279 CleanupStack::Pop( notifier ); |
2280 CleanupStack::Pop( notifier ); |
2280 iNotifiers.AppendL( notifier ); |
|
2281 |
2281 |
2282 CleanupStack::PopAndDestroy( aCondition ); |
2282 CleanupStack::PopAndDestroy( aCondition ); |
2283 } |
2283 } |
2284 |
2284 |
2285 void CMdESessionImpl::AddObjectPresentObserverL( |
2285 void CMdESessionImpl::AddObjectPresentObserverL( |
2301 |
2301 |
2302 CMdENotifierAO* notifier = CMdENotifierAO::NewLC( *this, iSession ); |
2302 CMdENotifierAO* notifier = CMdENotifierAO::NewLC( *this, iSession ); |
2303 notifier->RegisterL( EObjectNotifyPresent | EObjectNotifyNotPresent, |
2303 notifier->RegisterL( EObjectNotifyPresent | EObjectNotifyNotPresent, |
2304 &aObserver, NULL, namespaceDef ); |
2304 &aObserver, NULL, namespaceDef ); |
2305 |
2305 |
|
2306 iNotifiers.AppendL( notifier ); |
2306 CleanupStack::Pop( notifier ); |
2307 CleanupStack::Pop( notifier ); |
2307 iNotifiers.AppendL( notifier ); |
|
2308 } |
2308 } |
2309 |
2309 |
2310 void CMdESessionImpl::AddRelationObserverL( MMdERelationObserver& aObserver, |
2310 void CMdESessionImpl::AddRelationObserverL( MMdERelationObserver& aObserver, |
2311 CMdECondition* aCondition, |
2311 CMdECondition* aCondition, |
2312 TUint32 aNotificationType, |
2312 TUint32 aNotificationType, |
2357 } |
2357 } |
2358 |
2358 |
2359 CMdENotifierAO* notifier = CMdENotifierAO::NewLC( *this, iSession ); |
2359 CMdENotifierAO* notifier = CMdENotifierAO::NewLC( *this, iSession ); |
2360 notifier->RegisterL( type, &aObserver, aCondition, *namespaceDef ); |
2360 notifier->RegisterL( type, &aObserver, aCondition, *namespaceDef ); |
2361 |
2361 |
|
2362 iNotifiers.AppendL( notifier ); |
2362 CleanupStack::Pop( notifier ); |
2363 CleanupStack::Pop( notifier ); |
2363 iNotifiers.AppendL( notifier ); |
|
2364 |
2364 |
2365 CleanupStack::PopAndDestroy( aCondition ); |
2365 CleanupStack::PopAndDestroy( aCondition ); |
2366 } |
2366 } |
2367 |
2367 |
2368 void CMdESessionImpl::AddRelationItemObserverL( |
2368 void CMdESessionImpl::AddRelationItemObserverL( |
2414 } |
2414 } |
2415 |
2415 |
2416 CMdENotifierAO* notifier = CMdENotifierAO::NewLC( *this, iSession ); |
2416 CMdENotifierAO* notifier = CMdENotifierAO::NewLC( *this, iSession ); |
2417 notifier->RegisterL( type, &aObserver, aCondition, *namespaceDef ); |
2417 notifier->RegisterL( type, &aObserver, aCondition, *namespaceDef ); |
2418 |
2418 |
|
2419 iNotifiers.AppendL( notifier ); |
2419 CleanupStack::Pop( notifier ); |
2420 CleanupStack::Pop( notifier ); |
2420 iNotifiers.AppendL( notifier ); |
|
2421 |
2421 |
2422 CleanupStack::PopAndDestroy( aCondition ); |
2422 CleanupStack::PopAndDestroy( aCondition ); |
2423 } |
2423 } |
2424 |
2424 |
2425 |
2425 |
2443 |
2443 |
2444 CMdENotifierAO* notifier = CMdENotifierAO::NewLC( *this, iSession ); |
2444 CMdENotifierAO* notifier = CMdENotifierAO::NewLC( *this, iSession ); |
2445 notifier->RegisterL( ERelationNotifyPresent | ERelationNotifyNotPresent, |
2445 notifier->RegisterL( ERelationNotifyPresent | ERelationNotifyNotPresent, |
2446 &aObserver, NULL, namespaceDef ); |
2446 &aObserver, NULL, namespaceDef ); |
2447 |
2447 |
|
2448 iNotifiers.AppendL( notifier ); |
2448 CleanupStack::Pop( notifier ); |
2449 CleanupStack::Pop( notifier ); |
2449 iNotifiers.AppendL( notifier ); |
|
2450 } |
2450 } |
2451 |
2451 |
2452 void CMdESessionImpl::AddEventObserverL( MMdEEventObserver& aObserver, |
2452 void CMdESessionImpl::AddEventObserverL( MMdEEventObserver& aObserver, |
2453 CMdECondition* aCondition, |
2453 CMdECondition* aCondition, |
2454 TUint32 aNotificationType, |
2454 TUint32 aNotificationType, |
2500 } |
2500 } |
2501 |
2501 |
2502 CMdENotifierAO* notifier = CMdENotifierAO::NewLC( *this, iSession ); |
2502 CMdENotifierAO* notifier = CMdENotifierAO::NewLC( *this, iSession ); |
2503 notifier->RegisterL( type, &aObserver, aCondition, *namespaceDef ); |
2503 notifier->RegisterL( type, &aObserver, aCondition, *namespaceDef ); |
2504 |
2504 |
|
2505 iNotifiers.AppendL( notifier ); |
2505 CleanupStack::Pop( notifier ); |
2506 CleanupStack::Pop( notifier ); |
2506 iNotifiers.AppendL( notifier ); |
|
2507 |
2507 |
2508 CleanupStack::PopAndDestroy( aCondition ); |
2508 CleanupStack::PopAndDestroy( aCondition ); |
2509 } |
2509 } |
2510 |
2510 |
2511 void CMdESessionImpl::RemoveObjectObserverL( |
2511 void CMdESessionImpl::RemoveObjectObserverL( |
2994 } |
2994 } |
2995 |
2995 |
2996 CMdENotifierAO* notifier = CMdENotifierAO::NewLC( *this, iSession ); |
2996 CMdENotifierAO* notifier = CMdENotifierAO::NewLC( *this, iSession ); |
2997 notifier->RegisterL( type, &aObserver, aCondition, *namespaceDef ); |
2997 notifier->RegisterL( type, &aObserver, aCondition, *namespaceDef ); |
2998 |
2998 |
|
2999 iNotifiers.AppendL( notifier ); |
2999 CleanupStack::Pop( notifier ); |
3000 CleanupStack::Pop( notifier ); |
3000 iNotifiers.Append( notifier ); |
|
3001 |
3001 |
3002 CleanupStack::PopAndDestroy( aCondition ); |
3002 CleanupStack::PopAndDestroy( aCondition ); |
3003 } |
3003 } |
3004 |
3004 |
3005 void CMdESessionImpl::RemoveObjectObserverWithUriL( |
3005 void CMdESessionImpl::RemoveObjectObserverWithUriL( |