diff --git a/include/transport/rostermanager.h b/include/transport/rostermanager.h index 29c460ca7cfd013809a7ab9de963dd1875e3da75..2e67532afa4549591537648619c93d7b50ccc6ae 100644 --- a/include/transport/rostermanager.h +++ b/include/transport/rostermanager.h @@ -36,6 +36,16 @@ class Component; class StorageBackend; class RosterStorage; +// TODO: Once Swiften GetRosterRequest will support setting to="", this can be removed +class AddressedRosterRequest : public Swift::GenericRequest { + public: + typedef boost::shared_ptr ref; + + AddressedRosterRequest(Swift::IQRouter* router, Swift::JID to) : + Swift::GenericRequest(Swift::IQ::Get, to, boost::shared_ptr(new Swift::RosterPayload()), router) { + } +}; + /// Manages roster of one XMPP user. class RosterManager { public: