uiservicetab/vimpstdetailsviewplugin/src/cvimpstdetailspresencehandler.cpp
branchRCL_3
changeset 34 e7f34e614544
parent 29 9a48e301e94b
equal deleted inserted replaced
32:ffa4311257f6 34:e7f34e614544
   106 		{
   106 		{
   107 		delete iUserId;
   107 		delete iUserId;
   108 		iUserId = NULL;	
   108 		iUserId = NULL;	
   109 		}
   109 		}
   110 	iUserId = aUserId.AllocL();
   110 	iUserId = aUserId.AllocL();
   111 	iStatus = TVIMPSTEnums::EOffline;
       
   112 	if( !iPresenceSupported )
   111 	if( !iPresenceSupported )
   113 	    {
   112 	    {
   114 	    return;
   113 	    return;
   115 	    }
   114 	    }
   116 	HBufC* name = HBufC::NewLC( aUserId.Length() + iServiceName->Length() + KColon().Length() );
   115 	HBufC* name = HBufC::NewLC( aUserId.Length() + iServiceName->Length() + KColon().Length() );
   400 	if( CCoeEnv::Static() && TVIMPSTEnums::EServiceOut != iStatus 
   399 	if( CCoeEnv::Static() && TVIMPSTEnums::EServiceOut != iStatus 
   401                             && TVIMPSTEnums::EUnknown != iStatus )
   400                             && TVIMPSTEnums::EUnknown != iStatus )
   402 		{
   401 		{
   403 		iStatusText = StringLoader::LoadL( resourceId );	
   402 		iStatusText = StringLoader::LoadL( resourceId );	
   404 		}
   403 		}
   405 	if( iStatusText )
   404 	if( iStatusText && iUserId )
   406 		{
   405 		{
   407 		return *iStatusText;	
   406 		return *iStatusText;	
   408 		}
   407 		}
   409 	return KNullDesC;
   408 	return KNullDesC;
   410 	}
   409 	}