Ejemplo n.º 1
0
					void ClientConnection::handleRoster (const gloox::Roster& roster)
					{
						QList<QObject*> entries;
						for (gloox::Roster::const_iterator i = roster.begin (),
								end = roster.end (); i != end; ++i)
						{
							GlooxCLEntry *entry = new GlooxCLEntry (i->second, Account_);
							entries << entry;

							JID2CLEntry_ [i->first] = entry;
						}

						if (entries.size ())
							emit gotRosterItems (entries);
					}
Ejemplo n.º 2
0
Archivo: client.cpp Proyecto: j0wl/licq
void Client::handleRoster(const gloox::Roster& roster)
{
  TRACE();

  std::set<string> jidlist;
  gloox::Roster::const_iterator it;

  for (it = roster.begin(); it != roster.end(); ++it)
  {
    if (addRosterItem(*it->second))
      jidlist.insert(it->first);
  }

  myHandler.onRosterReceived(jidlist);
}