|<B>is_retrievedB>||Returns true if this roster was fetched from the server or false if this roster hasnt been retrieved yet.|
|<B>new_contact ($jid, B>$name<B>, B>$groups<B>, B>$cb<B>)B>||
This method sends a roster item creation request to
the server. $jid is the JID of the contact.
$name is the nickname of the contact, which can be
undef. $groups should be a array reference containing
the groups this contact should be in.
The callback in $cb will be called when the creation is finished. The first argument will be the AnyEvent::XMPP::IM::Contact object if no error occured. The second argument will be an AnyEvent::XMPP::Error::IQ object if the request resulted in an error.
Please note that the contact you are given in that callback might not yet be on the roster (is_on_roster still returns a false value), if the server did send the roster push after the iq result of the roster set, so dont rely on the fact that the contact is on the roster.
|<B>delete_contact ($jid, B>$cb<B>)B>||This method will send a request to the server to delete this contact from the roster. It will result in cancelling all subscriptions.|
Returns the contact on the roster with the JID $jid.
(If $jid is not bare the resource part will be stripped
The return value is an instance of AnyEvent::XMPP::IM::Contact.
Returns the contacts that are on this roster as
NOTE: This method only returns the contacts that have a roster item. If you havent retrieved the roster yet the presence information is still stored but you have to get the contacts without a roster item with the get_contacts_off_roster method. See below.
Returns the contacts that are not on the roster
but for which we have received presence.
Return value is a list of AnyEvent::XMPP::IM::Contact objects.
See also documentation of get_contacts method of AnyEvent::XMPP::IM::Roster above.
|<B>get_own_contactB>||This method returns a AnyEvent::XMPP::IM::Contact object which stands for ourself. It will be used to keep track of our own presences.|
|<B>debug_dumpB>||This prints the roster and all its contacts and their presences.|
Robin Redeker, <elmex at ta-sa.org>, JID: <elmex at jabber.org>
AnyEvent::XMPP::IM::Connection, AnyEvent::XMPP::IM::Contact, AnyEvent::XMPP::IM::Presence
Copyright 2007, 2008 Robin Redeker, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|perl v5.20.3||ANYEVENT::XMPP::IM::ROSTER (3)||2012-12-25|