summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateusz Piekos <mateuszpiekos@gmail.com>2012-06-08 13:37:12 (GMT)
committerMateusz Piekos <mateuszpiekos@gmail.com>2012-06-08 13:37:12 (GMT)
commit6e9fb4e4a3aeee8c40617a4dda6e5e0892ceebad (patch)
treefd2c0a48c6f5d033fe742790fb2e640d7e13ba91 /Swift/Controllers/WhiteboardManager.h
parent13ededd86bfb5dc5115af69d79810122313273b5 (diff)
downloadswift-contrib-6e9fb4e4a3aeee8c40617a4dda6e5e0892ceebad.zip
swift-contrib-6e9fb4e4a3aeee8c40617a4dda6e5e0892ceebad.tar.bz2
Added handling of whiteboard session requests
Diffstat (limited to 'Swift/Controllers/WhiteboardManager.h')
-rw-r--r--Swift/Controllers/WhiteboardManager.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Swift/Controllers/WhiteboardManager.h b/Swift/Controllers/WhiteboardManager.h
index 8257f73..2690f36 100644
--- a/Swift/Controllers/WhiteboardManager.h
+++ b/Swift/Controllers/WhiteboardManager.h
@@ -25,11 +25,13 @@ namespace Swift {
WhiteboardManager(WhiteboardWindowFactory* whiteboardWindowFactory, UIEventStream* uiEventStream, WhiteboardSessionManager* whiteboardSessionManager);
~WhiteboardManager();
- WhiteboardWindow* getWhiteboardWindowOrCreate(const JID& contact);
- WhiteboardWindow* createNewWhiteboardWindow(const JID& contact);
+ WhiteboardWindow* createNewWhiteboardWindow(const JID& contact, WhiteboardSession* session);
private:
void handleUIEvent(boost::shared_ptr<UIEvent> event);
+ void acceptSession(const JID& from);
+ void handleAcceptedRequest(const JID& from, WhiteboardSession* session);
+ WhiteboardWindow* findWhiteboardWindow(const JID& contact);
private:
std::map<JID, WhiteboardWindow*> whiteboardWindows_;