diff options
author | Kevin Smith <git@kismith.co.uk> | 2009-12-26 22:52:16 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2009-12-26 22:52:16 (GMT) |
commit | c3bda61b09597a7944fbc382366bcdf998540e82 (patch) | |
tree | a710af80c7e494a60a2676d3595ba4ab3a5ccf79 /Swift/Controllers/ChatsManager.h | |
parent | 21532c3557a3dc43f5f0376bf6554f6895c71a03 (diff) | |
download | swift-contrib-c3bda61b09597a7944fbc382366bcdf998540e82.zip swift-contrib-c3bda61b09597a7944fbc382366bcdf998540e82.tar.bz2 |
More thoroughly test the chat routing.
This adds in the behaviour for unbinding chats when the resource goes offline (only if there isn't already an unbound chatwindow).
Resolves: #155
Diffstat (limited to 'Swift/Controllers/ChatsManager.h')
-rw-r--r-- | Swift/Controllers/ChatsManager.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Swift/Controllers/ChatsManager.h b/Swift/Controllers/ChatsManager.h index e897e59..260bd1d 100644 --- a/Swift/Controllers/ChatsManager.h +++ b/Swift/Controllers/ChatsManager.h @@ -7,6 +7,7 @@ #include "Swiften/Base/String.h" #include "Swiften/Elements/DiscoInfo.h" #include "Swiften/Elements/Message.h" +#include "Swiften/Elements/Presence.h" #include "Swiften/JID/JID.h" #include "Swiften/MUC/MUCRegistry.h" @@ -33,7 +34,8 @@ namespace Swift { void handleChatRequest(const String& contact); void handleJoinMUCRequest(const JID& muc, const String& nick); private: - void handleChatControllerJIDChanged(const JID& from, const JID& to); + void rebindControllerJID(const JID& from, const JID& to); + void handlePresenceChange(boost::shared_ptr<Presence> oldPresence, boost::shared_ptr<Presence> newPresence); ChatController* getChatController(const JID &contact); virtual bool isMUC(const JID& muc) const; |