diff options
author | Mateusz Piekos <mateuszpiekos@gmail.com> | 2012-06-01 17:13:40 (GMT) |
---|---|---|
committer | Mateusz Piekos <mateuszpiekos@gmail.com> | 2012-06-01 17:13:40 (GMT) |
commit | e8ab1af885ff61715ab0350c3cb22ed6988a082a (patch) | |
tree | abfd1f18bf6bda8865c1269c1ecb4a1b4ff802d0 /Swiften/Elements/WhiteboardPayload.h | |
parent | 4f9ad66f222d4bf1cb740a9e1b4b4496cfbc0910 (diff) | |
download | swift-contrib-e8ab1af885ff61715ab0350c3cb22ed6988a082a.zip swift-contrib-e8ab1af885ff61715ab0350c3cb22ed6988a082a.tar.bz2 |
Added simple whiteboard payload and it's parser and serializer
Diffstat (limited to 'Swiften/Elements/WhiteboardPayload.h')
-rw-r--r-- | Swiften/Elements/WhiteboardPayload.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Swiften/Elements/WhiteboardPayload.h b/Swiften/Elements/WhiteboardPayload.h new file mode 100644 index 0000000..8d40d9d --- /dev/null +++ b/Swiften/Elements/WhiteboardPayload.h @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2012 Mateusz Piękos + * Licensed under the simplified BSD license. + * See Documentation/Licenses/BSD-simplified.txt for more information. + */ + +#pragma once + +#include <string> + +#include <Swiften/Elements/Payload.h> + +namespace Swift { + class WhiteboardPayload : public Payload { + public: + WhiteboardPayload() { + } + + void setData(const std::string &data) { + data_ = data; + } + + std::string getData() const { + return data_; + } + + private: + std::string data_; + }; +} |