diff options
author | Remko Tronçon <git@el-tramo.be> | 2014-01-22 17:40:37 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2014-01-22 18:55:41 (GMT) |
commit | 4c83aa02da939ee3dc59b6febf70cab87e85f758 (patch) | |
tree | 80f6caaa5eb6bac6cdbd52bb96993564fa9cc678 /Swiften | |
parent | f12c7f0fa30b5a17e43d00abd6310fa923699373 (diff) | |
download | swift-contrib-4c83aa02da939ee3dc59b6febf70cab87e85f758.zip swift-contrib-4c83aa02da939ee3dc59b6febf70cab87e85f758.tar.bz2 |
Sluift: Support arbitrary payloads in messages & presence.
- Add 'payloads' option to send_message and send_presence
- Add 'payloads' table to message event
Change-Id: I43079d519322abe8c4710ddaec5de22c48edd1ef
Diffstat (limited to 'Swiften')
-rw-r--r-- | Swiften/Elements/Stanza.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Swiften/Elements/Stanza.h b/Swiften/Elements/Stanza.h index fbb0139..bd0d7e9 100644 --- a/Swiften/Elements/Stanza.h +++ b/Swiften/Elements/Stanza.h @@ -58,6 +58,11 @@ namespace Swift { payloads_.push_back(payload); } + template<typename InputIterator> + void addPayloads(InputIterator begin, InputIterator end) { + payloads_.insert(payloads_.end(), begin, end); + } + void updatePayload(boost::shared_ptr<Payload> payload); boost::shared_ptr<Payload> getPayloadOfSameType(boost::shared_ptr<Payload>) const; |