summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHanzZ <hanzz.k@gmail.com>2011-06-18 18:55:48 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-06-19 17:52:01 (GMT)
commitd0f5efabfe61347df011c3dab5e47a45b53e8b22 (patch)
treebd3b87a4a661aeee84bf22c5715c20236cf52f06 /Swiften/Elements
parent499ec820b7b92d9f9a84569fdbc31507f462a77d (diff)
downloadswift-contrib-d0f5efabfe61347df011c3dab5e47a45b53e8b22.zip
swift-contrib-d0f5efabfe61347df011c3dab5e47a45b53e8b22.tar.bz2
Added RosterItemExchangePayload::item::setGroups
License: This patch is BSD-licensed, see http://www.opensource.org/licenses/bsd-license.php
Diffstat (limited to 'Swiften/Elements')
-rw-r--r--Swiften/Elements/RosterItemExchangePayload.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Swiften/Elements/RosterItemExchangePayload.h b/Swiften/Elements/RosterItemExchangePayload.h
index c39c084..f9aa2c8 100644
--- a/Swiften/Elements/RosterItemExchangePayload.h
+++ b/Swiften/Elements/RosterItemExchangePayload.h
@@ -53,6 +53,10 @@ namespace Swift {
return groups;
}
+ void setGroups(const std::vector<std::string> &groups) {
+ this->groups = groups;
+ }
+
void addGroup(const std::string& group) {
groups.push_back(group);
}