summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Kaluza <hanzz.k@gmail.com>2011-04-12 11:36:52 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-04-18 19:11:42 (GMT)
commite0578b8fc582d431cce61ecac833ecf7031f6e75 (patch)
treec03e5bbe9419c5e6aed19e22f06491801f9659c1 /Swiften/Roster
parent92af1a97f318f7f623df3183e90e7e828fa2eeb9 (diff)
downloadswift-e0578b8fc582d431cce61ecac833ecf7031f6e75.zip
swift-e0578b8fc582d431cce61ecac833ecf7031f6e75.tar.bz2
Added Roster Item Exchange XEP support.
License: This patch is BSD-licensed, see http://www.opensource.org/licenses/bsd-license.php
Diffstat (limited to 'Swiften/Roster')
-rw-r--r--Swiften/Roster/SetRosterRequest.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Swiften/Roster/SetRosterRequest.h b/Swiften/Roster/SetRosterRequest.h
index e5ae974..2066089 100644
--- a/Swiften/Roster/SetRosterRequest.h
+++ b/Swiften/Roster/SetRosterRequest.h
@@ -18,12 +18,12 @@ namespace Swift {
public:
typedef boost::shared_ptr<SetRosterRequest> ref;
- static ref create(RosterPayload::ref payload, IQRouter* router) {
- return ref(new SetRosterRequest(payload, router));
+ static ref create(RosterPayload::ref payload, IQRouter* router, const JID& to = JID()) {
+ return ref(new SetRosterRequest(payload, router, to));
}
private:
- SetRosterRequest(boost::shared_ptr<RosterPayload> payload, IQRouter* router) : Request(IQ::Set, JID(), boost::shared_ptr<RosterPayload>(payload), router) {
+ SetRosterRequest(boost::shared_ptr<RosterPayload> payload, IQRouter* router, const JID& to) : Request(IQ::Set, to, boost::shared_ptr<RosterPayload>(payload), router) {
}
virtual void handleResponse(boost::shared_ptr<Payload> /*payload*/, ErrorPayload::ref error) {