diff options
Diffstat (limited to 'Swiften/Presence/StanzaChannelPresenceSender.cpp')
-rw-r--r-- | Swiften/Presence/StanzaChannelPresenceSender.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Swiften/Presence/StanzaChannelPresenceSender.cpp b/Swiften/Presence/StanzaChannelPresenceSender.cpp new file mode 100644 index 0000000..654b7e7 --- /dev/null +++ b/Swiften/Presence/StanzaChannelPresenceSender.cpp @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2010 Remko Tronçon + * Licensed under the GNU General Public License v3. + * See Documentation/Licenses/GPLv3.txt for more information. + */ + +#include "Swiften/Presence/StanzaChannelPresenceSender.h" +#include "Swiften/Client/StanzaChannel.h" + +namespace Swift { + +StanzaChannelPresenceSender::StanzaChannelPresenceSender(StanzaChannel* channel) : channel(channel) { +} + +void StanzaChannelPresenceSender::sendPresence(Presence::ref presence) { + channel->sendPresence(presence); +} + +bool StanzaChannelPresenceSender::isAvailable() const { + return channel->isAvailable(); +} + +} |