diff options
Diffstat (limited to 'Swiften/StreamManagement/StanzaAckRequester.h')
-rw-r--r-- | Swiften/StreamManagement/StanzaAckRequester.h | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/Swiften/StreamManagement/StanzaAckRequester.h b/Swiften/StreamManagement/StanzaAckRequester.h index 79f4da8..422efbd 100644 --- a/Swiften/StreamManagement/StanzaAckRequester.h +++ b/Swiften/StreamManagement/StanzaAckRequester.h @@ -1,34 +1,35 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2016 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once -#include <boost/shared_ptr.hpp> #include <deque> +#include <memory> + +#include <boost/signals2.hpp> #include <Swiften/Base/API.h> #include <Swiften/Elements/Stanza.h> -#include <Swiften/Base/boost_bsignals.h> namespace Swift { - class SWIFTEN_API StanzaAckRequester { - public: - StanzaAckRequester(); - - void handleStanzaSent(boost::shared_ptr<Stanza> stanza); - void handleAckReceived(unsigned int handledStanzasCount); - - public: - boost::signal<void ()> onRequestAck; - boost::signal<void (boost::shared_ptr<Stanza>)> onStanzaAcked; - - private: - friend class StanzaAckRequesterTest; - unsigned int lastHandledStanzasCount; - std::deque<boost::shared_ptr<Stanza> > unackedStanzas; - }; + class SWIFTEN_API StanzaAckRequester { + public: + StanzaAckRequester(); + + void handleStanzaSent(std::shared_ptr<Stanza> stanza); + void handleAckReceived(unsigned int handledStanzasCount); + + public: + boost::signals2::signal<void ()> onRequestAck; + boost::signals2::signal<void (std::shared_ptr<Stanza>)> onStanzaAcked; + + private: + friend class StanzaAckRequesterTest; + unsigned int lastHandledStanzasCount; + std::deque<std::shared_ptr<Stanza> > unackedStanzas; + }; } |