diff --git a/include/transport/user.h b/include/transport/user.h index 0ad6693a55abd1101eeced9b784e6a2c7735e960..ade960d0d853f9ce8db6719d52e5d604c4df48e9 100644 --- a/include/transport/user.h +++ b/include/transport/user.h @@ -24,6 +24,7 @@ #include "Swiften/Swiften.h" #include "Swiften/Presence/PresenceOracle.h" #include "Swiften/Disco/EntityCapsManager.h" +#include "Swiften/Disco/EntityCapsProvider.h" #include "storagebackend.h" namespace Transport { @@ -35,7 +36,7 @@ class UserManager; struct UserInfo; /// Represents online XMPP user. -class User { +class User : public Swift::EntityCapsProvider { public: /// Creates new User class. /// \param jid XMPP JID associated with this user @@ -56,6 +57,8 @@ class User { /// \return full JID which supports particular feature or invalid JID. Swift::JID getJIDWithFeature(const std::string &feature); + Swift::DiscoInfo::ref getCaps(const Swift::JID &jid) const; + /// Returns UserInfo struct with informations needed to connect the legacy network. /// \return UserInfo struct UserInfo &getUserInfo() { return m_userInfo; }