realtimenetprots/sipfw/ProfileAgent/Server/Src/SipProfileCacheItem.cpp
branchRCL_3
changeset 49 0a1ad22c7bdc
parent 46 346e49b9ce14
child 56 2c7192069824
equal deleted inserted replaced
46:346e49b9ce14 49:0a1ad22c7bdc
   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