Logo Search packages:      
Sourcecode: gabber version File versions  Download package

PresenceDB::const_iterator PresenceDB::find ( const string &  jid  )  const

Find Presence Packets from all JabberIDs which have the given user. This function will throw XCP_InvalidJID if the JID is not found.

A const iterator of Presence Packets.

Definition at line 195 of file jabberoo-presencedb.cc.

     PresenceDB::db::const_iterator it = find_or_throw(jid);
     // If the list is empty, throw an exception, otherwise return the first
     // item in the list
     if (it->second.begin() != it->second.end())
        return find_or_throw(jid)->second.begin();
        throw XCP_InvalidJID();

Generated by  Doxygen 1.6.0   Back to index