diff options
author | Mateusz Piekos <mateuszpiekos@gmail.com> | 2012-06-15 10:48:54 (GMT) |
---|---|---|
committer | Mateusz Piekos <mateuszpiekos@gmail.com> | 2012-06-15 10:48:54 (GMT) |
commit | 1dc6b7f7a3d96df848edad85c0d07d99340e3a3e (patch) | |
tree | db68d9c342293b18ce982a1eccbebde307ad0773 /Swiften/Elements/WhiteboardPayload.h | |
parent | 70de68383506430c297056cd3389595fc696df1e (diff) | |
download | swift-contrib-1dc6b7f7a3d96df848edad85c0d07d99340e3a3e.zip swift-contrib-1dc6b7f7a3d96df848edad85c0d07d99340e3a3e.tar.bz2 |
Moved serialization of elements to WhiteboardSerializer
Diffstat (limited to 'Swiften/Elements/WhiteboardPayload.h')
-rw-r--r-- | Swiften/Elements/WhiteboardPayload.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Swiften/Elements/WhiteboardPayload.h b/Swiften/Elements/WhiteboardPayload.h index 3ad1706..c61e4a5 100644 --- a/Swiften/Elements/WhiteboardPayload.h +++ b/Swiften/Elements/WhiteboardPayload.h @@ -9,12 +9,14 @@ #include <string> #include <Swiften/Elements/Payload.h> +#include <Swiften/Whiteboard/Elements/WhiteboardElement.h> namespace Swift { class WhiteboardPayload : public Payload { public: typedef boost::shared_ptr<WhiteboardPayload> ref; + public: enum Type {Data, SessionRequest, SessionAccept, SessionTerminate}; WhiteboardPayload(Type type = WhiteboardPayload::Data) : type_(type) { @@ -36,8 +38,17 @@ namespace Swift { type_ = type; } + WhiteboardElement::ref getElement() const { + return element_; + } + + void setElement(WhiteboardElement::ref element) { + element_ = element; + } + private: std::string data_; Type type_; + WhiteboardElement::ref element_; }; } |