imstutils/imconversationview/imcvuiengine/src/cimcvenginecchhandler.cpp
branchRCL_3
changeset 4 f5911524345e
parent 0 5e5d6b214f4f
child 25 fda5a9396e07
equal deleted inserted replaced
0:5e5d6b214f4f 4:f5911524345e
   278 				const TCCHSubserviceType aType,
   278 				const TCCHSubserviceType aType,
   279 				const TCchServiceStatus& aServiceStatus )
   279 				const TCchServiceStatus& aServiceStatus )
   280 	{
   280 	{
   281 	
   281 	
   282     IM_CV_LOGS(TXT("CVEngineCCHHnadler::DoHandleServiceStatusChangedL ") );   
   282     IM_CV_LOGS(TXT("CVEngineCCHHnadler::DoHandleServiceStatusChangedL ") );   
   283 	
   283 
   284 	if (aType == ECCHIMSub)
   284 	if (aType == ECCHPresenceSub)
       
   285 		{
       
   286 		/* SIP Adaptation -- sends error in Network Lost. This is added so that once we get it, we will unbindL and delete the context
       
   287 		 * This happens only in case of SIP as it does not send the event in IM Subservice.
       
   288 		 */
       
   289 		if (aServiceStatus.Error() && ECCHDisabled != aServiceStatus.State())
       
   290 			{
       
   291 				iEngine.ReleaseConnectionL ();
       
   292 				iEngine.DeleteContextL ();
       
   293 			}
       
   294 		} 
       
   295 	else if (aType == ECCHIMSub)
   285 		{
   296 		{
   286 		MIMCVEngineCCHObserver::TServiceState notifyEvent = 
   297 		MIMCVEngineCCHObserver::TServiceState notifyEvent = 
   287 									MIMCVEngineCCHObserver::ENotLoggedIn;
   298 									MIMCVEngineCCHObserver::ENotLoggedIn;
   288 		switch (aServiceStatus.State())
   299 		switch (aServiceStatus.State())
   289 			{
   300 			{