diff --git a/XMPPHP/XMPP.php b/XMPPHP/XMPP.php index 2bb47ef..2465fd9 100644 --- a/XMPPHP/XMPP.php +++ b/XMPPHP/XMPP.php @@ -277,6 +277,25 @@ class XMPPHP_XMPP extends XMPPHP_XMLStream { $this->send(""); } + /** + * Retrieves the roster + * + */ + public function getRoster() { + $id = $this->getID(); + $this->addIdJHandler($id, 'roster_get_handler'); + $this->send(""); + } + + /** + * Roster retrieval handler + * + * @param string $xml + */ + protected function roster_get_handler($xml) { + // TODO: make this work + } + /** * Session start handler *