realtimenetprots/sipfw/ProfileAgent/Server/Src/sipalrmigrationcontroller.cpp
changeset 15 8248b03a2669
parent 0 307788aac0a8
child 37 0295359a7673
equal deleted inserted replaced
0:307788aac0a8 15:8248b03a2669
   327 CSipAlrMigrationController::SendMigrationResult(TUint32 aIapId, TBool aAllowed)
   327 CSipAlrMigrationController::SendMigrationResult(TUint32 aIapId, TBool aAllowed)
   328 	{
   328 	{
   329 	PROFILE_DEBUG5("CSipAlrMigrCtrl::SendMigrationResult iap,allow,obsCount",
   329 	PROFILE_DEBUG5("CSipAlrMigrCtrl::SendMigrationResult iap,allow,obsCount",
   330 				   aIapId,
   330 				   aIapId,
   331 				   aAllowed,
   331 				   aAllowed,
   332 				   iObservers.Count())	
   332 				   iObservers.Count())
   333 
   333 	    
   334 	for (TInt i = 0; i < iObservers.Count(); ++i)
   334 		// It may be possible that Profile Could not be registered (if migration is allowed). In such cases error handling
       
   335         // for profile will be done, which will move Profile into Un-registered State
       
   336         // As the profile moves into Un-registered state, profile is detached from
       
   337         // the list of Observer which AlrMigrationController maintains. This dynamically
       
   338         // changes the Observer count.
       
   339 	    for (TInt i = iObservers.Count() -1; i >= 0; --i)
   335 		{
   340 		{
   336 		MSipAlrMigrationObserver& obs = iObservers[i].iObserver;
   341 		MSipAlrMigrationObserver& obs = iObservers[i].iObserver;
   337 		TRAPD(err, if (aAllowed)
   342 		TRAPD(err, if (aAllowed)
   338 			{
   343 			{
   339 			obs.MigrationIsAllowedL(aIapId);
   344 			obs.MigrationIsAllowedL(aIapId);