diff options
author | Mateusz Piekos <mateuszpiekos@gmail.com> | 2012-06-08 13:37:12 (GMT) |
---|---|---|
committer | Mateusz Piekos <mateuszpiekos@gmail.com> | 2012-06-08 13:37:12 (GMT) |
commit | 6e9fb4e4a3aeee8c40617a4dda6e5e0892ceebad (patch) | |
tree | fd2c0a48c6f5d033fe742790fb2e640d7e13ba91 /Swiften/Whiteboard/WhiteboardSession.h | |
parent | 13ededd86bfb5dc5115af69d79810122313273b5 (diff) | |
download | swift-contrib-6e9fb4e4a3aeee8c40617a4dda6e5e0892ceebad.zip swift-contrib-6e9fb4e4a3aeee8c40617a4dda6e5e0892ceebad.tar.bz2 |
Added handling of whiteboard session requests
Diffstat (limited to 'Swiften/Whiteboard/WhiteboardSession.h')
-rw-r--r-- | Swiften/Whiteboard/WhiteboardSession.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Swiften/Whiteboard/WhiteboardSession.h b/Swiften/Whiteboard/WhiteboardSession.h index c36e729..14d6778 100644 --- a/Swiften/Whiteboard/WhiteboardSession.h +++ b/Swiften/Whiteboard/WhiteboardSession.h @@ -10,9 +10,11 @@ #include <Swiften/JID/JID.h> #include <Swiften/Base/boost_bsignals.h> +#include <Swiften/Queries/GenericRequest.h> namespace Swift { class IQRouter; + class ErrorPayload; class WhiteboardPayload; class WhiteboardSession { @@ -20,12 +22,16 @@ namespace Swift { WhiteboardSession(const JID& jid, IQRouter* router); void handleIncomingAction(boost::shared_ptr<WhiteboardPayload> payload); void sendData(const std::string& data); + void sendSessionRequest(); + void handleSessionRequestResponse(boost::shared_ptr<WhiteboardPayload> whiteboardPayload, boost::shared_ptr<ErrorPayload> errorPayload); public: boost::signal< void(const std::string& data)> onDataReceived; + boost::signal< void(const JID& contact, WhiteboardSession* session)> onRequestAccepted; private: JID toJID_; IQRouter* router_; + GenericRequest<WhiteboardPayload>* sessionRequest; }; } |