/* * Copyright (c) 2014-2016 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include #include #include namespace Swift { class Delay; class Stanza; class SWIFTEN_API Forwarded : public Payload { public: typedef std::shared_ptr ref; public: virtual ~Forwarded(); void setDelay(std::shared_ptr delay) { delay_ = delay; } const std::shared_ptr& getDelay() const { return delay_; } void setStanza(std::shared_ptr stanza) { stanza_ = stanza; } const std::shared_ptr& getStanza() const { return stanza_; } private: std::shared_ptr delay_; std::shared_ptr stanza_; }; }