summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateusz Piekos <mateuszpiekos@gmail.com>2012-06-08 13:37:12 (GMT)
committerMateusz Piekos <mateuszpiekos@gmail.com>2012-06-08 13:37:12 (GMT)
commit6e9fb4e4a3aeee8c40617a4dda6e5e0892ceebad (patch)
treefd2c0a48c6f5d033fe742790fb2e640d7e13ba91 /Swiften/Elements
parent13ededd86bfb5dc5115af69d79810122313273b5 (diff)
downloadswift-contrib-6e9fb4e4a3aeee8c40617a4dda6e5e0892ceebad.zip
swift-contrib-6e9fb4e4a3aeee8c40617a4dda6e5e0892ceebad.tar.bz2
Added handling of whiteboard session requests
Diffstat (limited to 'Swiften/Elements')
-rw-r--r--Swiften/Elements/WhiteboardPayload.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/Swiften/Elements/WhiteboardPayload.h b/Swiften/Elements/WhiteboardPayload.h
index 8d40d9d..db261ca 100644
--- a/Swiften/Elements/WhiteboardPayload.h
+++ b/Swiften/Elements/WhiteboardPayload.h
@@ -13,7 +13,11 @@
namespace Swift {
class WhiteboardPayload : public Payload {
public:
- WhiteboardPayload() {
+ typedef boost::shared_ptr<WhiteboardPayload> ref;
+
+ enum Type {Data, SessionRequest};
+
+ WhiteboardPayload(Type type = WhiteboardPayload::Data) : type_(type) {
}
void setData(const std::string &data) {
@@ -24,7 +28,16 @@ namespace Swift {
return data_;
}
+ Type getType() const {
+ return type_;
+ }
+
+ void setType(Type type) {
+ type_ = type;
+ }
+
private:
std::string data_;
+ Type type_;
};
}