diff --git a/include/transport/userregistration.h b/include/transport/userregistration.h index 6a5d2327c87a28f54b4ba2a930996bed4508b9f9..3a34480b90223a5508777e90fcdd2ce24e176ed5 100644 --- a/include/transport/userregistration.h +++ b/include/transport/userregistration.h @@ -21,8 +21,7 @@ #pragma once #include "Swiften/Swiften.h" -#include "Swiften/Queries/GetResponder.h" -#include "Swiften/Queries/SetResponder.h" +#include "Swiften/Queries/Responder.h" #include "Swiften/Elements/InBandRegistrationPayload.h" namespace Transport { @@ -34,7 +33,7 @@ class UserManager; class Config; /// Allows users to register the transport using service discovery. -class UserRegistration : Swift::GetResponder, Swift::SetResponder { +class UserRegistration : public Swift::Responder { public: /// Creates new UserRegistration handler. /// \param component Component associated with this class @@ -69,8 +68,8 @@ class UserRegistration : Swift::GetResponder, boost::signal onUserUpdated; private: - bool handleGetRequest(const Swift::JID& from, const Swift::JID& to, const std::string& id, boost::shared_ptr payload); - bool handleSetRequest(const Swift::JID& from, const Swift::JID& to, const std::string& id, boost::shared_ptr payload); + virtual bool handleGetRequest(const Swift::JID& from, const Swift::JID& to, const std::string& id, boost::shared_ptr payload); + virtual bool handleSetRequest(const Swift::JID& from, const Swift::JID& to, const std::string& id, boost::shared_ptr payload); Component *m_component; StorageBackend *m_storageBackend;