diff options
Diffstat (limited to 'Swiften/Whiteboard/WhiteboardSession.h')
-rw-r--r-- | Swiften/Whiteboard/WhiteboardSession.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Swiften/Whiteboard/WhiteboardSession.h b/Swiften/Whiteboard/WhiteboardSession.h new file mode 100644 index 0000000..c36e729 --- /dev/null +++ b/Swiften/Whiteboard/WhiteboardSession.h @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2012 Mateusz Piękos + * Licensed under the simplified BSD license. + * See Documentation/Licenses/BSD-simplified.txt for more information. + */ + +#pragma once + +#include <boost/shared_ptr.hpp> + +#include <Swiften/JID/JID.h> +#include <Swiften/Base/boost_bsignals.h> + +namespace Swift { + class IQRouter; + class WhiteboardPayload; + + class WhiteboardSession { + public: + WhiteboardSession(const JID& jid, IQRouter* router); + void handleIncomingAction(boost::shared_ptr<WhiteboardPayload> payload); + void sendData(const std::string& data); + + public: + boost::signal< void(const std::string& data)> onDataReceived; + + private: + JID toJID_; + IQRouter* router_; + }; +} |