summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-04-05 21:55:55 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-04-05 21:55:55 (GMT)
commit5e87304f8e31adeddcba41879057093e65047493 (patch)
tree48fa139eeefce402ebcb4d30adb30f01196ad1d5 /Swift/Controllers/Chat/ChatsManager.h
parenta8ac900bfd39f36749b25d97b55f5a08a1020de5 (diff)
downloadswift-5e87304f8e31adeddcba41879057093e65047493.zip
swift-5e87304f8e31adeddcba41879057093e65047493.tar.bz2
Re-use Chat controllers when opening a new chat.
Resolves: #282
Diffstat (limited to 'Swift/Controllers/Chat/ChatsManager.h')
-rw-r--r--Swift/Controllers/Chat/ChatsManager.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Swift/Controllers/Chat/ChatsManager.h b/Swift/Controllers/Chat/ChatsManager.h
index 575be5f..bcbe9eb 100644
--- a/Swift/Controllers/Chat/ChatsManager.h
+++ b/Swift/Controllers/Chat/ChatsManager.h
@@ -46,7 +46,10 @@ namespace Swift {
void handleMUCBookmarkAdded(boost::shared_ptr<MUCBookmark> bookmark);
void handleMUCBookmarkRemoved(boost::shared_ptr<MUCBookmark> bookmark);
void handleUserLeftMUC(MUCController* mucController);
- ChatController* getChatController(const JID &contact);
+ ChatController* getChatControllerOrFindAnother(const JID &contact);
+ ChatController* createNewChatController(const JID &contact);
+ ChatController* getChatControllerOrCreate(const JID &contact);
+ ChatController* getChatControllerIfExists(const JID &contact);
virtual bool isMUC(const JID& muc) const;
std::map<JID, MUCController*> mucControllers_;