/* * 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 #include "Swiften/Elements/Presence.h" namespace Swift { class StanzaChannel; class PresenceSender { public: PresenceSender(StanzaChannel*); void addDirectedPresenceReceiver(const JID&); void removeDirectedPresenceReceiver(const JID&); void sendPresence(boost::shared_ptr); private: boost::shared_ptr lastSentUndirectedPresence; StanzaChannel* channel; std::set directedPresenceReceivers; }; }