diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-10-30 17:46:24 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-10-30 17:51:32 (GMT) |
commit | ba333999576d89f3340c271b2a3331d6a3e64ac7 (patch) | |
tree | 7f2d0dd20d6d6a302a26c904468a90c22150b481 /Swiften/Client/CoreClient.h | |
parent | 59be74ec6fc7bc495f2a261b8f274b8555aee306 (diff) | |
download | swift-contrib-ba333999576d89f3340c271b2a3331d6a3e64ac7.zip swift-contrib-ba333999576d89f3340c271b2a3331d6a3e64ac7.tar.bz2 |
Disconnect client cleanly before quitting.
Resolves: #671, #420
Diffstat (limited to 'Swiften/Client/CoreClient.h')
-rw-r--r-- | Swiften/Client/CoreClient.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Swiften/Client/CoreClient.h b/Swiften/Client/CoreClient.h index e9e81ec..2b7113f 100644 --- a/Swiften/Client/CoreClient.h +++ b/Swiften/Client/CoreClient.h @@ -96,6 +96,13 @@ namespace Swift { } /** + * Checks whether the client is active. + * + * A client is active when it is connected or connecting to the server. + */ + bool isActive() const; + + /** * Returns the JID of the client. * After the session was initialized, this returns the bound JID. */ |