diff options
Diffstat (limited to 'Swiften/Elements/Forwarded.h')
-rw-r--r-- | Swiften/Elements/Forwarded.h | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/Swiften/Elements/Forwarded.h b/Swiften/Elements/Forwarded.h index 60f0e8c..a7eb492 100644 --- a/Swiften/Elements/Forwarded.h +++ b/Swiften/Elements/Forwarded.h @@ -1,32 +1,35 @@ /* - * Copyright (c) 2014 Isode Limited. + * Copyright (c) 2014-2016 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once -#include <boost/optional.hpp> -#include <boost/date_time/posix_time/posix_time.hpp> +#include <memory> + #include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> namespace Swift { - class Delay; - class Stanza; + class Delay; + class Stanza; + + class SWIFTEN_API Forwarded : public Payload { + public: + typedef std::shared_ptr<Forwarded> ref; - class SWIFTEN_API Forwarded : public Payload { - public: - virtual ~Forwarded(); + public: + virtual ~Forwarded(); - void setDelay(boost::shared_ptr<Delay> delay) { delay_ = delay; } - const boost::shared_ptr<Delay>& getDelay() const { return delay_; } + void setDelay(std::shared_ptr<Delay> delay) { delay_ = delay; } + const std::shared_ptr<Delay>& getDelay() const { return delay_; } - void setStanza(boost::shared_ptr<Stanza> stanza) { stanza_ = stanza; } - const boost::shared_ptr<Stanza>& getStanza() const { return stanza_; } + void setStanza(std::shared_ptr<Stanza> stanza) { stanza_ = stanza; } + const std::shared_ptr<Stanza>& getStanza() const { return stanza_; } - private: - boost::shared_ptr<Delay> delay_; - boost::shared_ptr<Stanza> stanza_; - }; + private: + std::shared_ptr<Delay> delay_; + std::shared_ptr<Stanza> stanza_; + }; } |