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/Examples/SendMessage | |
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/Examples/SendMessage')
-rw-r--r-- | Swiften/Examples/SendMessage/SendMessage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Swiften/Examples/SendMessage/SendMessage.cpp b/Swiften/Examples/SendMessage/SendMessage.cpp index d9ed923..fe020aa 100644 --- a/Swiften/Examples/SendMessage/SendMessage.cpp +++ b/Swiften/Examples/SendMessage/SendMessage.cpp @@ -37,7 +37,7 @@ void handleConnected() { eventLoop.stop(); } -void handleError(const ClientError&) { +void handleDisconnected(const boost::optional<ClientError>&) { std::cerr << "Error!" << std::endl; exitCode = 1; eventLoop.stop(); @@ -64,7 +64,7 @@ int main(int argc, char* argv[]) { ClientXMLTracer* tracer = new ClientXMLTracer(client); client->onConnected.connect(&handleConnected); - errorConnection = client->onError.connect(&handleError); + errorConnection = client->onDisconnected.connect(&handleDisconnected); if (!connectHost.isEmpty()) { client->connect(connectHost); } else { |