diff options
-rw-r--r-- | Swiften/Client/Client.h | 1 | ||||
-rw-r--r-- | Swiften/Disco/EntityCapsManager.h | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/Swiften/Client/Client.h b/Swiften/Client/Client.h index 342fe76..c2c9c60 100644 --- a/Swiften/Client/Client.h +++ b/Swiften/Client/Client.h @@ -97,6 +97,7 @@ namespace Swift { AvatarManager* getAvatarManager() const { return avatarManager; } + EntityCapsManager* getEntityCapsManager() const { return entityCapsManager; } diff --git a/Swiften/Disco/EntityCapsManager.h b/Swiften/Disco/EntityCapsManager.h index 810e260..01f8793 100644 --- a/Swiften/Disco/EntityCapsManager.h +++ b/Swiften/Disco/EntityCapsManager.h @@ -15,12 +15,24 @@ namespace Swift { class StanzaChannel; class CapsProvider; + /** + * This class is responsible for gathering and providing + * information about capabilities of entities on the network. + * This information is provided in the form of service discovery + * information. + */ class EntityCapsManager : public boost::bsignals::trackable { public: EntityCapsManager(CapsProvider*, StanzaChannel*); + /** + * Returns the service discovery information of the given JID. + */ DiscoInfo::ref getCaps(const JID&) const; + /** + * Emitted when the capabilities of a JID changes. + */ boost::signal<void (const JID&)> onCapsChanged; private: |