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/Parser/PayloadParsers | |
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/Parser/PayloadParsers')
-rw-r--r-- | Swiften/Parser/PayloadParsers/WhiteboardParser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Swiften/Parser/PayloadParsers/WhiteboardParser.cpp b/Swiften/Parser/PayloadParsers/WhiteboardParser.cpp index 12bed17..7ec181f 100644 --- a/Swiften/Parser/PayloadParsers/WhiteboardParser.cpp +++ b/Swiften/Parser/PayloadParsers/WhiteboardParser.cpp @@ -33,6 +33,8 @@ namespace Swift { operation = insertOp; } else if (type == "update") { WhiteboardUpdateOperation::ref updateOp = boost::make_shared<WhiteboardUpdateOperation>(); + std::string move = attributes.getAttributeValue("newpos").get_value_or("0"); + updateOp->setNewPos(boost::lexical_cast<int>(attributes.getAttributeValue("newpos").get_value_or("0"))); operation = updateOp; } else if (type == "delete") { WhiteboardDeleteOperation::ref deleteOp = boost::make_shared<WhiteboardDeleteOperation>(); |