summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-12-23 10:32:29 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-12-23 10:32:29 (GMT)
commit135f55589ef230ab009e3b961895a6d3b12cdc87 (patch)
treeba83a3973bdb8dde916629acd2fa8cf53127de7d /Swift/Controllers/MainController.h
parent9f04a7ec3429303118f12607703b877d8ba43888 (diff)
downloadswift-135f55589ef230ab009e3b961895a6d3b12cdc87.zip
swift-135f55589ef230ab009e3b961895a6d3b12cdc87.tar.bz2
Add a timer so 20 seconds after requesting a quit, it'll quit regardless of receiving a stream close
Diffstat (limited to 'Swift/Controllers/MainController.h')
-rw-r--r--Swift/Controllers/MainController.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Swift/Controllers/MainController.h b/Swift/Controllers/MainController.h
index aece80f..8489f71 100644
--- a/Swift/Controllers/MainController.h
+++ b/Swift/Controllers/MainController.h
@@ -102,6 +102,7 @@ namespace Swift {
void reconnectAfterError();
void setManagersOffline();
void handleNotificationClicked(const JID& jid);
+ void handleForceQuit();
private:
EventLoop* eventLoop_;
@@ -141,8 +142,10 @@ namespace Swift {
UserSearchController* userSearchController_;
int timeBeforeNextReconnect_;
Timer::ref reconnectTimer_;
+ Timer::ref quitTimer_;
StatusTracker* statusTracker_;
bool myStatusLooksOnline_;
bool quitRequested_;
+ static const int SecondsToWaitBeforeForceQuitting;
};
}