diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-05-21 20:45:42 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-05-21 20:45:42 (GMT) |
commit | c9659b556b932e2f887cf1d8ab6c5a0bead835eb (patch) | |
tree | 41543cbb50580f0dd94a7dd5902e76747859c7e9 /Swift/Controllers/Chat/MUCController.h | |
parent | dc80d6baf01d1a4c69e5204887d430ad5f6daaec (diff) | |
download | swift-contrib-c9659b556b932e2f887cf1d8ab6c5a0bead835eb.zip swift-contrib-c9659b556b932e2f887cf1d8ab6c5a0bead835eb.tar.bz2 |
Warnings about MUC joins that never complete.
Diffstat (limited to 'Swift/Controllers/Chat/MUCController.h')
-rw-r--r-- | Swift/Controllers/Chat/MUCController.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Swift/Controllers/Chat/MUCController.h b/Swift/Controllers/Chat/MUCController.h index 8e6e01b..9e79835 100644 --- a/Swift/Controllers/Chat/MUCController.h +++ b/Swift/Controllers/Chat/MUCController.h @@ -12,6 +12,7 @@ #include <boost/signals/connection.hpp> #include "Swiften/Base/String.h" +#include "Swiften/Network/Timer.h" #include "Swift/Controllers/Chat/ChatControllerBase.h" #include "Swiften/Elements/Message.h" #include "Swiften/Elements/DiscoInfo.h" @@ -27,10 +28,11 @@ namespace Swift { class Roster; class AvatarManager; class UIEventStream; + class TimerFactory; class MUCController : public ChatControllerBase { public: - MUCController(const JID& self, const JID &muc, const String &nick, StanzaChannel* stanzaChannel, PresenceSender* presenceSender, IQRouter* iqRouter, ChatWindowFactory* chatWindowFactory, PresenceOracle* presenceOracle, AvatarManager* avatarManager, UIEventStream* events, bool useDelayForLatency); + MUCController(const JID& self, const JID &muc, const String &nick, StanzaChannel* stanzaChannel, PresenceSender* presenceSender, IQRouter* iqRouter, ChatWindowFactory* chatWindowFactory, PresenceOracle* presenceOracle, AvatarManager* avatarManager, UIEventStream* events, bool useDelayForLatency, TimerFactory* timerFactory); ~MUCController(); boost::signal<void ()> onUserLeft; @@ -45,6 +47,8 @@ namespace Swift { void handleOccupantJoined(const MUCOccupant& occupant); void handleOccupantLeft(const MUCOccupant& occupant, MUC::LeavingType type, const String& reason); void handleOccupantPresenceChange(boost::shared_ptr<Presence> presence); + void handleJoinComplete(MUC::JoinResult result); + void handleJoinTimeoutTick(); private: MUC* muc_; @@ -52,7 +56,9 @@ namespace Swift { String nick_; Roster* roster_; bool parting_; + bool joined_; boost::bsignals::scoped_connection avatarChangedConnection_; + boost::shared_ptr<Timer> loginCheckTimer_; }; } #endif |