equal
deleted
inserted
replaced
364 { |
364 { |
365 TInt index = iObservers.Find(&aObserver); |
365 TInt index = iObservers.Find(&aObserver); |
366 if (index != KErrNotFound) |
366 if (index != KErrNotFound) |
367 { |
367 { |
368 iObservers.Remove(index); |
368 iObservers.Remove(index); |
|
369 iObservers.Compress(); |
369 } |
370 } |
370 |
371 |
371 RemoveFromPendingObservers(aObserver); |
372 RemoveFromPendingObservers(aObserver); |
372 } |
373 } |
373 |
374 |
400 { |
401 { |
401 TInt index = iUsers.Find(&aObserver); |
402 TInt index = iUsers.Find(&aObserver); |
402 if (index != KErrNotFound) |
403 if (index != KErrNotFound) |
403 { |
404 { |
404 iUsers.Remove(index); |
405 iUsers.Remove(index); |
|
406 iUsers.Compress(); |
405 CheckProfileEnabledState(); |
407 CheckProfileEnabledState(); |
406 } |
408 } |
407 } |
409 } |
408 |
410 |
409 // ----------------------------------------------------------------------------- |
411 // ----------------------------------------------------------------------------- |
1254 { |
1256 { |
1255 TInt index = iObserversWaitedForPermission.Find(&aObserver); |
1257 TInt index = iObserversWaitedForPermission.Find(&aObserver); |
1256 if (index != KErrNotFound) |
1258 if (index != KErrNotFound) |
1257 { |
1259 { |
1258 iObserversWaitedForPermission.Remove(index); |
1260 iObserversWaitedForPermission.Remove(index); |
|
1261 iObserversWaitedForPermission.Compress(); |
1259 } |
1262 } |
1260 } |
1263 } |
1261 |
1264 |
1262 // ----------------------------------------------------------------------------- |
1265 // ----------------------------------------------------------------------------- |
1263 // CSIPProfileCacheItem::DoNewIapFailed |
1266 // CSIPProfileCacheItem::DoNewIapFailed |
1414 TUint32 CSIPProfileCacheItem::BearerID() |
1417 TUint32 CSIPProfileCacheItem::BearerID() |
1415 { TUint32 bearerId(0); |
1418 { TUint32 bearerId(0); |
1416 LatestProfile().ExtensionParameter(KBearerType , bearerId); |
1419 LatestProfile().ExtensionParameter(KBearerType , bearerId); |
1417 return bearerId; |
1420 return bearerId; |
1418 } |
1421 } |
|
1422 |
|
1423 // ----------------------------------------------------------------------------- |
|
1424 // CSIPProfileCacheItem::HasQueuedUpdate |
|
1425 // This function will return true if profile updated and not yet processed |
|
1426 // false otherwise |
|
1427 // ----------------------------------------------------------------------------- |
|
1428 // |
|
1429 TBool CSIPProfileCacheItem::HasQueuedUpdate() const |
|
1430 { |
|
1431 return (iQueuedProfile != NULL); |
|
1432 } |