diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-10-21 19:44:13 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-10-21 19:54:06 (GMT) |
commit | bbb77132775e69b6df7df4ddf38a429aff733d2b (patch) | |
tree | a512aaa8292ea4afe175446d672261921c2d27c0 /Swiften/Queries/Responders/RosterPushResponder.h | |
parent | 4943167a6451d7a483a2aacb5f3f2bebb82adf0d (diff) | |
download | swift-contrib-bbb77132775e69b6df7df4ddf38a429aff733d2b.zip swift-contrib-bbb77132775e69b6df7df4ddf38a429aff733d2b.tar.bz2 |
Moving queries & responders around.
Diffstat (limited to 'Swiften/Queries/Responders/RosterPushResponder.h')
-rw-r--r-- | Swiften/Queries/Responders/RosterPushResponder.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/Swiften/Queries/Responders/RosterPushResponder.h b/Swiften/Queries/Responders/RosterPushResponder.h deleted file mode 100644 index 48111a7..0000000 --- a/Swiften/Queries/Responders/RosterPushResponder.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (c) 2010 Remko Tronçon - * Licensed under the GNU General Public License v3. - * See Documentation/Licenses/GPLv3.txt for more information. - */ - -#pragma once - -#include "Swiften/Base/boost_bsignals.h" - -#include "Swiften/Queries/SetResponder.h" -#include "Swiften/Elements/RosterPayload.h" - -namespace Swift { - class RosterPushResponder : public SetResponder<RosterPayload> { - public: - RosterPushResponder(IQRouter* router) : SetResponder<RosterPayload>(router) {} - - public: - boost::signal<void (boost::shared_ptr<RosterPayload>)> onRosterReceived; - - private: - virtual bool handleSetRequest(const JID& from, const String& id, boost::shared_ptr<RosterPayload> payload) { - onRosterReceived(payload); - sendResponse(from, id, boost::shared_ptr<RosterPayload>()); - return true; - } - }; -} |