diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-04-12 18:35:30 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-04-18 19:11:42 (GMT) |
commit | 509973e7e5978c2225fb89a10a1e2343fce21e7b (patch) | |
tree | d8ea2cdc00d42f709103a1a1c0b7777c192e71a7 /Swiften/Roster | |
parent | e0578b8fc582d431cce61ecac833ecf7031f6e75 (diff) | |
download | swift-contrib-509973e7e5978c2225fb89a10a1e2343fce21e7b.zip swift-contrib-509973e7e5978c2225fb89a10a1e2343fce21e7b.tar.bz2 |
Small tweaks to the roster item exchange payload.
Diffstat (limited to 'Swiften/Roster')
-rw-r--r-- | Swiften/Roster/SetRosterRequest.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Swiften/Roster/SetRosterRequest.h b/Swiften/Roster/SetRosterRequest.h index 2066089..606b431 100644 --- a/Swiften/Roster/SetRosterRequest.h +++ b/Swiften/Roster/SetRosterRequest.h @@ -18,12 +18,16 @@ namespace Swift { public: typedef boost::shared_ptr<SetRosterRequest> ref; - static ref create(RosterPayload::ref payload, IQRouter* router, const JID& to = JID()) { - return ref(new SetRosterRequest(payload, router, to)); + static ref create(RosterPayload::ref payload, IQRouter* router) { + return ref(new SetRosterRequest(JID(), payload, router)); + } + + static ref create(RosterPayload::ref payload, const JID& to, IQRouter* router) { + return ref(new SetRosterRequest(to, payload, router)); } private: - SetRosterRequest(boost::shared_ptr<RosterPayload> payload, IQRouter* router, const JID& to) : Request(IQ::Set, to, boost::shared_ptr<RosterPayload>(payload), router) { + SetRosterRequest(const JID& to, boost::shared_ptr<RosterPayload> payload, IQRouter* router) : Request(IQ::Set, to, boost::shared_ptr<RosterPayload>(payload), router) { } virtual void handleResponse(boost::shared_ptr<Payload> /*payload*/, ErrorPayload::ref error) { |