diff options
| author | Remko Tronçon <git@el-tramo.be> | 2011-01-16 19:56:10 (GMT) | 
|---|---|---|
| committer | Remko Tronçon <git@el-tramo.be> | 2011-01-20 21:40:49 (GMT) | 
| commit | 004dfd8d4305b767b624be10072597ef3e311753 (patch) | |
| tree | 7f9a70ce336e9eca3bc78397640530939e55fa20 /Swift/Controllers/Chat/MUCSearchController.h | |
| parent | 03d69bfd11549e1c8dcbf3b5300029ba9892cf8a (diff) | |
| download | swift-contrib-004dfd8d4305b767b624be10072597ef3e311753.zip swift-contrib-004dfd8d4305b767b624be10072597ef3e311753.tar.bz2  | |
Use a dedicated Join MUC dialog.
Diffstat (limited to 'Swift/Controllers/Chat/MUCSearchController.h')
| -rw-r--r-- | Swift/Controllers/Chat/MUCSearchController.h | 34 | 
1 files changed, 20 insertions, 14 deletions
diff --git a/Swift/Controllers/Chat/MUCSearchController.h b/Swift/Controllers/Chat/MUCSearchController.h index 6caee54..6d3afd1 100644 --- a/Swift/Controllers/Chat/MUCSearchController.h +++ b/Swift/Controllers/Chat/MUCSearchController.h @@ -88,32 +88,38 @@ namespace Swift {  	class MUCSearchController {  		public: -			MUCSearchController(const JID& jid, UIEventStream* uiEventStream, MUCSearchWindowFactory* mucSearchWindowFactory, IQRouter* iqRouter, SettingsProvider* settings, NickResolver* nickResolver); +			MUCSearchController(const JID& jid, MUCSearchWindowFactory* mucSearchWindowFactory, IQRouter* iqRouter, SettingsProvider* settings);  			~MUCSearchController(); + +			void openSearchWindow(); + +		public: +			boost::signal<void (const JID&)> onMUCSelected; +  		private: -			void handleUIEvent(boost::shared_ptr<UIEvent> event); -			void handleAddService(const JID& jid); +			void handleSearchService(const JID& jid);  			void handleRoomsItemsResponse(boost::shared_ptr<DiscoItems> items, ErrorPayload::ref error, const JID& jid);  			void handleDiscoError(const JID& jid, ErrorPayload::ref error);  			void handleDiscoServiceFound(const JID&, boost::shared_ptr<DiscoInfo>); -			void handleDiscoWalkFinished(DiscoServiceWalker* walker); +			void handleDiscoWalkFinished(); +			void handleMUCSearchFinished(const boost::optional<JID>& result);  			void removeService(const JID& jid);  			void refreshView(); -			void loadServices(); -			void addAndSaveServices(const JID& jid); +			void loadSavedServices(); +			void addToSavedServices(const JID& jid);  			void updateInProgressness(); -			UIEventStream* uiEventStream_; -			MUCSearchWindow* window_; + +		private: +			JID jid_;  			MUCSearchWindowFactory* factory_; +			IQRouter* iqRouter_;  			SettingsProvider* settings_; -			NickResolver* nickResolver_; -			boost::bsignals::scoped_connection uiEventConnection_; -			std::vector<JID> services_; -			std::vector<JID> savedServices_; +			MUCSearchWindow* window_; +			DiscoServiceWalker* walker_; +			std::list<JID> services_; +			std::list<JID> savedServices_;  			std::map<JID, MUCService> serviceDetails_;  			std::vector<DiscoServiceWalker*> walksInProgress_; -			IQRouter* iqRouter_; -			JID jid_;  			int itemsInProgress_;  	};  }  | 
 Swift