summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateusz Piekos <mateuszpiekos@gmail.com>2012-06-15 10:48:54 (GMT)
committerMateusz Piekos <mateuszpiekos@gmail.com>2012-06-15 10:48:54 (GMT)
commit1dc6b7f7a3d96df848edad85c0d07d99340e3a3e (patch)
treedb68d9c342293b18ce982a1eccbebde307ad0773 /Swiften/Elements
parent70de68383506430c297056cd3389595fc696df1e (diff)
downloadswift-contrib-1dc6b7f7a3d96df848edad85c0d07d99340e3a3e.zip
swift-contrib-1dc6b7f7a3d96df848edad85c0d07d99340e3a3e.tar.bz2
Moved serialization of elements to WhiteboardSerializer
Diffstat (limited to 'Swiften/Elements')
-rw-r--r--Swiften/Elements/WhiteboardPayload.h11
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_;
};
}