diff options
author | Mateusz Piekos <mateuszpiekos@gmail.com> | 2012-07-31 08:31:54 (GMT) |
---|---|---|
committer | Mateusz Piekos <mateuszpiekos@gmail.com> | 2012-07-31 08:31:54 (GMT) |
commit | 4321da432e3332e868abf07678f15d305fec2a4b (patch) | |
tree | 72cc36c121448dce907a4ccbc679bc3cad3c07f4 /Swiften/Whiteboard/Operations | |
parent | 5fafa602d859657d6616acdbb63dfcd501aed9a0 (diff) | |
download | swift-contrib-4321da432e3332e868abf07678f15d305fec2a4b.zip swift-contrib-4321da432e3332e868abf07678f15d305fec2a4b.tar.bz2 |
Upgraded update operation with ability to move elements
Diffstat (limited to 'Swiften/Whiteboard/Operations')
-rw-r--r-- | Swiften/Whiteboard/Operations/WhiteboardUpdateOperation.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Swiften/Whiteboard/Operations/WhiteboardUpdateOperation.h b/Swiften/Whiteboard/Operations/WhiteboardUpdateOperation.h index 7c4b088..1b79043 100644 --- a/Swiften/Whiteboard/Operations/WhiteboardUpdateOperation.h +++ b/Swiften/Whiteboard/Operations/WhiteboardUpdateOperation.h @@ -26,7 +26,16 @@ namespace Swift { element_ = element; } + int getNewPos() const { + return newPos_; + } + + void setNewPos(int newPos) { + newPos_ = newPos; + } + private: WhiteboardElement::ref element_; + int newPos_; }; } |