diff --git a/include/transport/userregistration.h b/include/transport/userregistration.h index e6e614b9304741e4d540025ef178b07a74c14fdc..b4c5a13fef7bdab61ea2e93009e715f56f8148be 100644 --- a/include/transport/userregistration.h +++ b/include/transport/userregistration.h @@ -36,7 +36,7 @@ class UserManager; class Config; /// Allows users to register the transport using service discovery. -class UserRegistration : public Swift::Responder { +class UserRegistration { public: /// Creates new UserRegistration handler. /// \param component Component associated with this class @@ -45,7 +45,7 @@ class UserRegistration : public Swift::Responder onUserRegistered; @@ -71,14 +82,6 @@ class UserRegistration : public Swift::Responder onUserUpdated; private: - 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); - - void handleRegisterRemoteRosterResponse(boost::shared_ptr payload, Swift::ErrorPayload::ref error, const UserInfo &row); - void handleUnregisterRemoteRosterResponse(boost::shared_ptr payload, Swift::ErrorPayload::ref error, const std::string &barejid); - boost::shared_ptr generateInBandRegistrationPayload(const Swift::JID& from); - Swift::Form::ref generateRegistrationForm(const UserInfo &res, bool registered); - Component *m_component; StorageBackend *m_storageBackend; UserManager *m_userManager;