Example #1
0
IMAccount * IMAccountManager::getIMAccount( const IMAccount& imAccount ) 
{
	RecursiveMutex::ScopedLock lock(_mutex);

	IMAccount* result = NULL;
	IMAccount* temp = _imAccountList.findByAccount( imAccount );

	if ( temp )
	{
		result = temp->clone();		//VOXOX - JRT - 2009.04.10 - TODO - Seems unnecessary to clone this,
	}								//				but it is called in about 180 places in the code!

	return result;
}
Example #2
0
IMAccount* IMAccountList::findByKeyAndClone( const std::string& imAccountId )
{
	RecursiveMutex::ScopedLock lock( _mutex );	//VOXOX - JRT - 2009.07.13 

	IMAccount* result = NULL;
	IMAccount* temp = findByKey( imAccountId );

	if ( temp )
	{
		result = temp->clone();		//VOXOX - JRT - 2009.04.10 - TODO - Seems unnecessary to clone this,
	}								//				but it is called in about 180 places in the code!

	return result;
}