diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-04-05 19:15:02 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-04-05 19:15:02 (GMT) |
commit | 90eab2990dc087ebe2b91181f14ca452e5b31697 (patch) | |
tree | 7e264a796dad34bb55a79de81bed9e0bb4768573 /Swift/Controllers/Chat/MUCController.h | |
parent | c88b7c5da8dde6c4f7bdd85743378ec46f3a30fc (diff) | |
download | swift-contrib-90eab2990dc087ebe2b91181f14ca452e5b31697.zip swift-contrib-90eab2990dc087ebe2b91181f14ca452e5b31697.tar.bz2 |
Allow opening chats to MUC occupants.
Resolves: #275
Diffstat (limited to 'Swift/Controllers/Chat/MUCController.h')
-rw-r--r-- | Swift/Controllers/Chat/MUCController.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Swift/Controllers/Chat/MUCController.h b/Swift/Controllers/Chat/MUCController.h index aae2150..3ad6b57 100644 --- a/Swift/Controllers/Chat/MUCController.h +++ b/Swift/Controllers/Chat/MUCController.h @@ -9,6 +9,7 @@ #include "Swift/Controllers/Chat/ChatControllerBase.h" #include "Swiften/Elements/Message.h" #include "Swiften/Elements/DiscoInfo.h" +#include "Swiften/Roster/UserRosterAction.h" #include "Swiften/JID/JID.h" #include "Swiften/MUC/MUC.h" #include "Swiften/MUC/MUCOccupant.h" @@ -21,10 +22,11 @@ namespace Swift { class Roster; class TreeWidgetFactory; class AvatarManager; + class UIEventStream; class MUCController : public ChatControllerBase { public: - MUCController(const JID& self, const JID &muc, const String &nick, StanzaChannel* stanzaChannel, PresenceSender* presenceSender, IQRouter* iqRouter, ChatWindowFactory* chatWindowFactory, TreeWidgetFactory *treeWidgetFactory, PresenceOracle* presenceOracle, AvatarManager* avatarManager); + MUCController(const JID& self, const JID &muc, const String &nick, StanzaChannel* stanzaChannel, PresenceSender* presenceSender, IQRouter* iqRouter, ChatWindowFactory* chatWindowFactory, TreeWidgetFactory *treeWidgetFactory, PresenceOracle* presenceOracle, AvatarManager* avatarManager, UIEventStream* events); ~MUCController(); boost::signal<void ()> onUserLeft; @@ -39,12 +41,14 @@ 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 handleUserAction(boost::shared_ptr<UserRosterAction> action); private: - MUC *muc_; + MUC* muc_; + UIEventStream* events_; String nick_; - TreeWidgetFactory *treeWidgetFactory_; - Roster *roster_; + TreeWidgetFactory* treeWidgetFactory_; + Roster* roster_; bool parting_; boost::bsignals::scoped_connection avatarChangedConnection_; }; |