diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-10-30 14:11:35 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-10-30 17:44:46 (GMT) |
commit | 59be74ec6fc7bc495f2a261b8f274b8555aee306 (patch) | |
tree | 915be433534956f9316ba41220c064af77b9da90 /Swiften/Client/CoreClient.h | |
parent | c759220a7fcd824a7a842a468c660558fa1a1cf1 (diff) | |
download | swift-contrib-59be74ec6fc7bc495f2a261b8f274b8555aee306.zip swift-contrib-59be74ec6fc7bc495f2a261b8f274b8555aee306.tar.bz2 |
Changed CoreClient::onError to CoreClient::onDisconnected.
The error parameter is optional.
Diffstat (limited to 'Swiften/Client/CoreClient.h')
-rw-r--r-- | Swiften/Client/CoreClient.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Swiften/Client/CoreClient.h b/Swiften/Client/CoreClient.h index f6e0b6d..e9e81ec 100644 --- a/Swiften/Client/CoreClient.h +++ b/Swiften/Client/CoreClient.h @@ -126,9 +126,12 @@ namespace Swift { public: /** - * Emitted when a non-recoverable error occurs. + * Emitted when the client was disconnected from the network. + * + * If the connection was due to a non-recoverable error, the type + * of error will be passed as a parameter. */ - boost::signal<void (const ClientError&)> onError; + boost::signal<void (const boost::optional<ClientError>&)> onDisconnected; /** * Emitted when the client is connected and authenticated, |