diff options
author | Kevin Smith <git@kismith.co.uk> | 2009-10-25 15:47:40 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2009-10-25 15:48:08 (GMT) |
commit | bfdf408bed69a279eb710de915e932764ceaed76 (patch) | |
tree | a56cca8886784d31d91532067b62ffc1818e8291 /Swift/Controllers/MainController.h | |
parent | efd505dd4a85e696a650e29da829504cf01bb5d0 (diff) | |
download | swift-contrib-bfdf408bed69a279eb710de915e932764ceaed76.zip swift-contrib-bfdf408bed69a279eb710de915e932764ceaed76.tar.bz2 |
Some groundwork ready for autoaway
Diffstat (limited to 'Swift/Controllers/MainController.h')
-rw-r--r-- | Swift/Controllers/MainController.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Swift/Controllers/MainController.h b/Swift/Controllers/MainController.h index 2971493..5cdd9fa 100644 --- a/Swift/Controllers/MainController.h +++ b/Swift/Controllers/MainController.h @@ -25,6 +25,7 @@ namespace Swift { class ChatWindowFactory; class ChatController; class EventController; + class IdleDetector; class MainWindowFactory; class MainWindow; class NickResolver; @@ -46,7 +47,7 @@ namespace Swift { class MainController : public MUCRegistry { public: - MainController(ChatWindowFactory* chatWindowFactory, MainWindowFactory *mainWindowFactory, LoginWindowFactory *loginWindowFactory, TreeWidgetFactory* treeWidgetFactory, SettingsProvider *settings, Application* application, SystemTray* systemTray, SoundPlayer* soundPlayer); + MainController(ChatWindowFactory* chatWindowFactory, MainWindowFactory *mainWindowFactory, LoginWindowFactory *loginWindowFactory, TreeWidgetFactory* treeWidgetFactory, SettingsProvider *settings, Application* application, SystemTray* systemTray, SoundPlayer* soundPlayer, IdleDetector* idleDetector); ~MainController(); @@ -68,12 +69,13 @@ namespace Swift { void handleOwnVCardReceived(boost::shared_ptr<VCard> vCard, const boost::optional<Error>& error); ChatController* getChatController(const JID &contact); void sendPresence(boost::shared_ptr<Presence> presence); + void handleInputIdle(); + void handleInputNotIdle(); void logout(); void signOut(); virtual bool isMUC(const JID& muc) const; - private: void performLoginFromCachedCredentials(); void setManagersEnabled(bool enabled); Client* client_; @@ -92,6 +94,7 @@ namespace Swift { SoftwareVersionResponder* clientVersionResponder_; NickResolver* nickResolver_; DiscoInfoResponder* discoResponder_; + IdleDetector* idleDetector_; boost::shared_ptr<CapsInfo> capsInfo_; std::map<JID, MUCController*> mucControllers_; std::map<JID, ChatController*> chatControllers_; |