diff options
Diffstat (limited to 'Swiften/Roster/SetRosterRequest.h')
-rw-r--r-- | Swiften/Roster/SetRosterRequest.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/Swiften/Roster/SetRosterRequest.h b/Swiften/Roster/SetRosterRequest.h index 95a9f65..0f71ab7 100644 --- a/Swiften/Roster/SetRosterRequest.h +++ b/Swiften/Roster/SetRosterRequest.h @@ -1,41 +1,41 @@ /* - * Copyright (c) 2010-2015 Isode Limited. + * Copyright (c) 2010-2016 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once -#include <Swiften/Base/boost_bsignals.h> -#include <boost/shared_ptr.hpp> +#include <memory> + +#include <boost/signals2.hpp> #include <Swiften/Base/API.h> -#include <Swiften/Queries/Request.h> #include <Swiften/Elements/RosterPayload.h> - +#include <Swiften/Queries/Request.h> namespace Swift { - class SWIFTEN_API SetRosterRequest : public Request { - public: - typedef boost::shared_ptr<SetRosterRequest> ref; + class SWIFTEN_API SetRosterRequest : public Request { + public: + typedef std::shared_ptr<SetRosterRequest> ref; - static ref create(RosterPayload::ref payload, IQRouter* router) { - return ref(new SetRosterRequest(JID(), payload, router)); - } + static ref create(RosterPayload::ref payload, IQRouter* router) { + return ref(new SetRosterRequest(JID(), payload, router)); + } - static ref create(RosterPayload::ref payload, const JID& to, IQRouter* router) { - return ref(new SetRosterRequest(to, payload, router)); - } + static ref create(RosterPayload::ref payload, const JID& to, IQRouter* router) { + return ref(new SetRosterRequest(to, payload, router)); + } - private: - SetRosterRequest(const JID& to, boost::shared_ptr<RosterPayload> payload, IQRouter* router) : Request(IQ::Set, to, boost::shared_ptr<RosterPayload>(payload), router) { - } + private: + SetRosterRequest(const JID& to, std::shared_ptr<RosterPayload> payload, IQRouter* router) : Request(IQ::Set, to, std::shared_ptr<RosterPayload>(payload), router) { + } - virtual void handleResponse(boost::shared_ptr<Payload> /*payload*/, ErrorPayload::ref error) { - onResponse(error); - } + virtual void handleResponse(std::shared_ptr<Payload> /*payload*/, ErrorPayload::ref error) { + onResponse(error); + } - public: - boost::signal<void (ErrorPayload::ref)> onResponse; - }; + public: + boost::signals2::signal<void (ErrorPayload::ref)> onResponse; + }; } |