diff options
author | Mateusz Piekos <mateuszpiekos@gmail.com> | 2012-07-16 12:14:05 (GMT) |
---|---|---|
committer | Mateusz Piekos <mateuszpiekos@gmail.com> | 2012-07-16 12:14:05 (GMT) |
commit | b2e11d7f32db65a6be001dfdf74b74f16f4c9ec3 (patch) | |
tree | e99331d9c20e8199fda582e5f1b603d01b368f2a /Swiften/Whiteboard/Operations/WhiteboardUpdateOperation.h | |
parent | 0ba890e7e8c7e09c1257a7c3b1018f396e6896d1 (diff) | |
download | swift-contrib-b2e11d7f32db65a6be001dfdf74b74f16f4c9ec3.zip swift-contrib-b2e11d7f32db65a6be001dfdf74b74f16f4c9ec3.tar.bz2 |
Extended classes handling synchronization with update operation
Diffstat (limited to 'Swiften/Whiteboard/Operations/WhiteboardUpdateOperation.h')
-rw-r--r-- | Swiften/Whiteboard/Operations/WhiteboardUpdateOperation.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Swiften/Whiteboard/Operations/WhiteboardUpdateOperation.h b/Swiften/Whiteboard/Operations/WhiteboardUpdateOperation.h new file mode 100644 index 0000000..7c4b088 --- /dev/null +++ b/Swiften/Whiteboard/Operations/WhiteboardUpdateOperation.h @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2012 Mateusz Piękos + * Licensed under the simplified BSD license. + * See Documentation/Licenses/BSD-simplified.txt for more information. + */ + +#pragma once + +#include <Swiften/Whiteboard/Operations/WhiteboardOperation.h> + +#include <Swiften/Whiteboard/Elements/WhiteboardElement.h> + +namespace Swift { + class WhiteboardUpdateOperation : public WhiteboardOperation { + public: + typedef boost::shared_ptr<WhiteboardUpdateOperation> ref; + public: + ~WhiteboardUpdateOperation() { + } + + WhiteboardElement::ref getElement() const { + return element_; + } + + void setElement(WhiteboardElement::ref element) { + element_ = element; + } + + private: + WhiteboardElement::ref element_; + }; +} |