summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Presence/DirectedPresenceSender.h')
-rw-r--r--Swiften/Presence/DirectedPresenceSender.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/Swiften/Presence/DirectedPresenceSender.h b/Swiften/Presence/DirectedPresenceSender.h
index 74c91bd..a397776 100644
--- a/Swiften/Presence/DirectedPresenceSender.h
+++ b/Swiften/Presence/DirectedPresenceSender.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010-2014 Isode Limited.
+ * Copyright (c) 2010-2016 Isode Limited.
* All rights reserved.
* See the COPYING file for more information.
*/
@@ -10,28 +10,28 @@
#include <boost/optional.hpp>
+#include <Swiften/Base/API.h>
#include <Swiften/Elements/Presence.h>
#include <Swiften/Presence/PresenceSender.h>
-#include <Swiften/Base/API.h>
namespace Swift {
- class SWIFTEN_API DirectedPresenceSender : public PresenceSender {
- public:
- enum SendPresence {AndSendPresence, DontSendPresence};
- DirectedPresenceSender(PresenceSender*);
+ class SWIFTEN_API DirectedPresenceSender : public PresenceSender {
+ public:
+ enum SendPresence {AndSendPresence, DontSendPresence};
+ DirectedPresenceSender(PresenceSender*);
- void addDirectedPresenceReceiver(const JID&, SendPresence);
- void removeDirectedPresenceReceiver(const JID&, SendPresence);
+ void addDirectedPresenceReceiver(const JID&, SendPresence);
+ void removeDirectedPresenceReceiver(const JID&, SendPresence);
- void sendPresence(Presence::ref);
+ void sendPresence(Presence::ref);
- boost::optional<Presence::ref> getLastSentUndirectedPresence() const;
+ boost::optional<Presence::ref> getLastSentUndirectedPresence() const;
- bool isAvailable() const;
+ bool isAvailable() const;
- private:
- boost::optional<Presence::ref> lastSentUndirectedPresence;
- PresenceSender* sender;
- std::set<JID> directedPresenceReceivers;
- };
+ private:
+ boost::optional<Presence::ref> lastSentUndirectedPresence;
+ PresenceSender* sender;
+ std::set<JID> directedPresenceReceivers;
+ };
}