uiservicetab/vimpstdetailsviewplugin/src/cvimpstdetailspresencehandler.cpp
branchRCL_3
changeset 21 2b7283837edb
parent 9 9fdee5e1da30
equal deleted inserted replaced
19:fda5a9396e07 21:2b7283837edb
   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;
   111 	if( !iPresenceSupported )
   112 	if( !iPresenceSupported )
   112 	    {
   113 	    {
   113 	    return;
   114 	    return;
   114 	    }
   115 	    }
   115 	HBufC* name = HBufC::NewLC( aUserId.Length() + iServiceName->Length() + KColon().Length() );
   116 	HBufC* name = HBufC::NewLC( aUserId.Length() + iServiceName->Length() + KColon().Length() );
   399 	if( CCoeEnv::Static() && TVIMPSTEnums::EServiceOut != iStatus 
   400 	if( CCoeEnv::Static() && TVIMPSTEnums::EServiceOut != iStatus 
   400                             && TVIMPSTEnums::EUnknown != iStatus )
   401                             && TVIMPSTEnums::EUnknown != iStatus )
   401 		{
   402 		{
   402 		iStatusText = StringLoader::LoadL( resourceId );	
   403 		iStatusText = StringLoader::LoadL( resourceId );	
   403 		}
   404 		}
   404 	if( iStatusText && iUserId )
   405 	if( iStatusText )
   405 		{
   406 		{
   406 		return *iStatusText;	
   407 		return *iStatusText;	
   407 		}
   408 		}
   408 	return KNullDesC;
   409 	return KNullDesC;
   409 	}
   410 	}