summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateusz Piekos <mateuszpiekos@gmail.com>2012-08-08 08:47:51 (GMT)
committerMateusz Piekos <mateuszpiekos@gmail.com>2012-08-08 08:47:51 (GMT)
commitb4bdfea96ac0e0971109df94b3b71f79adefefe9 (patch)
tree1ff771011d94fe8a89d17d3e15c34971247b25e5 /Swiften/Whiteboard/WhiteboardSessionManager.h
parented00df1501e2da74b0287999d4d1c7185005e3f6 (diff)
downloadswift-contrib-b4bdfea96ac0e0971109df94b3b71f79adefefe9.zip
swift-contrib-b4bdfea96ac0e0971109df94b3b71f79adefefe9.tar.bz2
wb session manager responsible only for creating and storing sessions
Diffstat (limited to 'Swiften/Whiteboard/WhiteboardSessionManager.h')
-rw-r--r--Swiften/Whiteboard/WhiteboardSessionManager.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/Swiften/Whiteboard/WhiteboardSessionManager.h b/Swiften/Whiteboard/WhiteboardSessionManager.h
index b63066e..faccb97 100644
--- a/Swiften/Whiteboard/WhiteboardSessionManager.h
+++ b/Swiften/Whiteboard/WhiteboardSessionManager.h
@@ -26,23 +26,22 @@ namespace Swift {
public:
WhiteboardSessionManager(IQRouter* router, PresenceOracle* presenceOracle, EntityCapsProvider* capsProvider);
~WhiteboardSessionManager();
+
WhiteboardSession::ref getSession(const JID& to);
WhiteboardSession::ref requestSession(const JID& to);
public:
- boost::signal< void (const JID&, bool senderIsSelf)> onSessionRequest;
+ /*boost::signal< void (const JID&, bool senderIsSelf)> onSessionRequest;
boost::signal< void (const JID&)> onSessionTerminate;
boost::signal< void (const JID&)> onRequestAccepted;
- boost::signal< void (const JID&)> onRequestRejected;
+ boost::signal< void (const JID&)> onRequestRejected;*/
+ boost::signal< void (IncomingWhiteboardSession::ref)> onSessionRequest;
private:
JID getFullJID(const JID& bareJID);
OutgoingWhiteboardSession::ref createOutgoingSession(const JID& to);
void handleIncomingSession(IncomingWhiteboardSession::ref session);
- void handleSessionTerminate(const JID& contact);
- void handleSessionCancel(const JID& contact);
- void handleSessionAccept(const JID& contact);
- void handleRequestReject(const JID& contact);
+ void deleteSessionEntry(const JID& contact);
private:
std::map<JID, boost::shared_ptr<WhiteboardSession> > sessions_;