diff --git a/include/Swiften/Elements/PubSubPublishPayload.h b/include/Swiften/Elements/PubSubPublishPayload.h new file mode 100644 index 0000000000000000000000000000000000000000..930cca6bb20b108c3c5a54c7549c4067bffec4b3 --- /dev/null +++ b/include/Swiften/Elements/PubSubPublishPayload.h @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2011 Jan Kaluza + * Licensed under the Simplified BSD license. + * See Documentation/Licenses/BSD-simplified.txt for more information. + */ + +#pragma once + +#include + +#include +#include +#include +#include + +namespace Swift { + class PubSubPublishPayload : public Payload { + public: + enum Type { None, Pending, Subscribed, Unconfigured }; + + PubSubPublishPayload(const std::string &node = ""); + + void setNode(const std::string &node) { + this->node = node; + } + + const std::string &getNode() const { + return node; + } + + void addItem(const boost::shared_ptr &item) { + items.push_back(item); + } + + const std::vector > &getItems() const { + return items; + } + + private: + std::string node; + std::vector > items; + }; +}