diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-11-25 19:19:28 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-11-25 19:20:53 (GMT) |
commit | db00adc9810377500e6ab27900b29496a0d05afe (patch) | |
tree | 0f13d821883e0e99e9b6e7f15c84e3371375cd96 /Swift/Controllers | |
parent | c198064db0a6444a24220eee65cbf747eb7fbfb0 (diff) | |
download | swift-contrib-db00adc9810377500e6ab27900b29496a0d05afe.zip swift-contrib-db00adc9810377500e6ab27900b29496a0d05afe.tar.bz2 |
Enabled stream compression again.
Diffstat (limited to 'Swift/Controllers')
-rw-r--r-- | Swift/Controllers/MainController.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp index 22d71e5..d94cadc 100644 --- a/Swift/Controllers/MainController.cpp +++ b/Swift/Controllers/MainController.cpp @@ -262,8 +262,8 @@ void MainController::performLoginFromCachedCredentials() { if (!client_) { client_ = new Swift::Client(jid_, password_); presenceSender_ = new PresenceSender(client_); - //client_->onDataRead.connect(&printIncomingData); - //client_->onDataWritten.connect(&printOutgoingData); + client_->onDataRead.connect(&printIncomingData); + client_->onDataWritten.connect(&printOutgoingData); if (!certificateFile_.isEmpty()) { client_->setCertificate(certificateFile_); } @@ -284,6 +284,7 @@ void MainController::handleError(const ClientError& error) { case ClientError::ConnectionWriteError: message = "Error while sending data to the server"; break; case ClientError::XMLError: message = "Error parsing server data"; break; case ClientError::AuthenticationFailedError: message = "Login/password invalid"; break; + case ClientError::CompressionFailedError: message = "Error while compressing stream"; break; case ClientError::ServerVerificationFailedError: message = "Server verification failed"; break; case ClientError::NoSupportedAuthMechanismsError: message = "Authentication mechanisms not supported"; break; case ClientError::UnexpectedElementError: message = "Unexpected response"; break; |