diff --git a/include/Swiften/Elements/PubSubSubscribePayload.h b/include/Swiften/Elements/PubSubSubscribePayload.h new file mode 100644 index 0000000000000000000000000000000000000000..f2b011a2bfe18028eeb422c9ae066c646371a59b --- /dev/null +++ b/include/Swiften/Elements/PubSubSubscribePayload.h @@ -0,0 +1,40 @@ +/* + * 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 + +namespace Swift { + class PubSubSubscribePayload : public Payload { + public: + PubSubSubscribePayload(const JID &jid = JID(), const std::string &node = ""); + + void setJID(const JID &jid) { + this->jid = jid; + } + + const JID &getJID() const { + return jid; + } + + void setNode(const std::string &node) { + this->node = node; + } + + const std::string &getNode() const { + return node; + } + + private: + JID jid; + std::string node; + }; +}