diff --git a/spectrum/src/frontends/xmpp/XMPPUserRegistration.cpp b/spectrum/src/frontends/xmpp/XMPPUserRegistration.cpp index 2c08fd8a6bc608f2f565a4004b78dbf0c46efaf3..31dd8302da4fc1adadc97b5dfd5ac8d10952a232 100644 --- a/spectrum/src/frontends/xmpp/XMPPUserRegistration.cpp +++ b/spectrum/src/frontends/xmpp/XMPPUserRegistration.cpp @@ -78,7 +78,7 @@ bool XMPPUserRegistration::doUserUnregistration(const UserInfo &row) { return true; } -void XMPPUserRegistration::handleRegisterRemoteRosterResponse(boost::shared_ptr payload, Swift::ErrorPayload::ref remoteRosterNotSupported, const UserInfo &row){ +void XMPPUserRegistration::handleRegisterRemoteRosterResponse(SWIFTEN_SHRPTR_NAMESPACE::shared_ptr payload, Swift::ErrorPayload::ref remoteRosterNotSupported, const UserInfo &row){ if (remoteRosterNotSupported || !payload) { // Remote roster is not support, so send normal Subscribe presence to add transport. Swift::Presence::ref response = Swift::Presence::create(); @@ -103,7 +103,7 @@ void XMPPUserRegistration::handleRegisterRemoteRosterResponse(boost::shared_ptr< // If the JID for registration notification is configured, send the notification message. std::vector const &x = CONFIG_VECTOR(m_component->getConfig(),"registration.notify_jid"); BOOST_FOREACH(const std::string ¬ify_jid, x) { - boost::shared_ptr msg(new Swift::Message()); + SWIFTEN_SHRPTR_NAMESPACE::shared_ptr msg(new Swift::Message()); msg->setBody(std::string("registered: ") + row.jid); msg->setTo(notify_jid); msg->setFrom(m_component->getJID()); @@ -111,7 +111,7 @@ void XMPPUserRegistration::handleRegisterRemoteRosterResponse(boost::shared_ptr< } } -void XMPPUserRegistration::handleUnregisterRemoteRosterResponse(boost::shared_ptr payload, Swift::ErrorPayload::ref remoteRosterNotSupported, const UserInfo &userInfo) { +void XMPPUserRegistration::handleUnregisterRemoteRosterResponse(SWIFTEN_SHRPTR_NAMESPACE::shared_ptr payload, Swift::ErrorPayload::ref remoteRosterNotSupported, const UserInfo &userInfo) { if (remoteRosterNotSupported || !payload) { // Remote roster is ont support, so get the buddies from database // and send Unsubsribe and Unsubscribed presence to them. @@ -196,7 +196,7 @@ void XMPPUserRegistration::handleUnregisterRemoteRosterResponse(boost::shared_pt // If the JID for registration notification is configured, send the notification message. std::vector const &x = CONFIG_VECTOR(m_component->getConfig(),"registration.notify_jid"); BOOST_FOREACH(const std::string ¬ify_jid, x) { - boost::shared_ptr msg(new Swift::Message()); + SWIFTEN_SHRPTR_NAMESPACE::shared_ptr msg(new Swift::Message()); msg->setBody(std::string("unregistered: ") + userInfo.jid); msg->setTo(notify_jid); msg->setFrom(m_component->getJID()); @@ -236,8 +236,8 @@ Form::ref XMPPUserRegistration::generateRegistrationForm(const UserInfo &res, bo return form; } -boost::shared_ptr XMPPUserRegistration::generateInBandRegistrationPayload(const Swift::JID& from) { - boost::shared_ptr reg(new InBandRegistrationPayload()); +SWIFTEN_SHRPTR_NAMESPACE::shared_ptr XMPPUserRegistration::generateInBandRegistrationPayload(const Swift::JID& from) { + SWIFTEN_SHRPTR_NAMESPACE::shared_ptr reg(new InBandRegistrationPayload()); UserInfo res; bool registered = m_storageBackend->getUser(from.toBare().toString(), res); @@ -256,7 +256,7 @@ boost::shared_ptr XMPPUserRegistration::generateInBan return reg; } -bool XMPPUserRegistration::handleGetRequest(const Swift::JID& from, const Swift::JID& to, const std::string& id, boost::shared_ptr payload) { +bool XMPPUserRegistration::handleGetRequest(const Swift::JID& from, const Swift::JID& to, const std::string& id, SWIFTEN_SHRPTR_NAMESPACE::shared_ptr payload) { // TODO: backend should say itself if registration is needed or not... if (CONFIG_STRING(m_config, "service.protocol") == "irc") { sendError(from, id, ErrorPayload::BadRequest, ErrorPayload::Modify); @@ -272,13 +272,13 @@ bool XMPPUserRegistration::handleGetRequest(const Swift::JID& from, const Swift: } } - boost::shared_ptr reg = generateInBandRegistrationPayload(from); + SWIFTEN_SHRPTR_NAMESPACE::shared_ptr reg = generateInBandRegistrationPayload(from); sendResponse(from, id, reg); return true; } -bool XMPPUserRegistration::handleSetRequest(const Swift::JID& from, const Swift::JID& to, const std::string& id, boost::shared_ptr payload) { +bool XMPPUserRegistration::handleSetRequest(const Swift::JID& from, const Swift::JID& to, const std::string& id, SWIFTEN_SHRPTR_NAMESPACE::shared_ptr payload) { // TODO: backend should say itself if registration is needed or not... if (CONFIG_STRING(m_config, "service.protocol") == "irc") { sendError(from, id, ErrorPayload::BadRequest, ErrorPayload::Modify);