diff options
Diffstat (limited to 'Swiften/Presence/PresenceSender.h')
-rw-r--r-- | Swiften/Presence/PresenceSender.h | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/Swiften/Presence/PresenceSender.h b/Swiften/Presence/PresenceSender.h index 3336523..5abf2f3 100644 --- a/Swiften/Presence/PresenceSender.h +++ b/Swiften/Presence/PresenceSender.h @@ -6,31 +6,15 @@ #pragma once -#include <set> - #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<Presence>); - - void cancelSubscription(const JID& jid); - void confirmSubscription(const JID& jid); - void requestSubscription(const JID& jid); + virtual ~PresenceSender(); - boost::shared_ptr<Presence> getLastSentUndirectedPresence(); + virtual void sendPresence(Presence::ref) = 0; - private: - boost::shared_ptr<Presence> lastSentUndirectedPresence; - StanzaChannel* channel; - std::set<JID> directedPresenceReceivers; + virtual bool isAvailable() const = 0; }; } |