15 #include "rosteritem.h"
16 #include "rosteritemdata.h"
49 return m_data->
name();
114 if( m_resources.find( resource ) == m_resources.end() )
117 m_resources[
resource]->setStatus( presence );
122 if( m_resources.find( resource ) == m_resources.end() )
125 m_resources[
resource]->setMessage( msg );
130 if( m_resources.find( resource ) == m_resources.end() )
133 m_resources[
resource]->setPriority( priority );
138 int highestPriority = -255;
140 ResourceMap::const_iterator it = m_resources.begin();
141 for( ; it != m_resources.end() ; ++it )
143 if( (*it).second->priority() > highestPriority )
145 highestPriority = (*it).second->priority();
146 highestResource = (*it).second;
154 if( m_resources.find( resource ) == m_resources.end() )
157 m_resources[
resource]->setExtensions( exts );
162 ResourceMap::iterator it = m_resources.find( resource );
163 if( it != m_resources.end() )
166 m_resources.erase( it );
172 return !m_resources.empty();
177 ResourceMap::const_iterator it = m_resources.find( res );
178 return it != m_resources.end() ? (*it).second : 0;