summaryrefslogtreecommitdiff
path: root/kimap/loginjob.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2012-06-26 11:02:20 (GMT)
committerChristian Mollekopf <chrigi_1@fastmail.fm>2012-06-26 11:02:20 (GMT)
commit76178c821932ada88863877e9652056a84cb1018 (patch)
tree70c54204b73c7e282b6b27fc437e4bd5f712071a /kimap/loginjob.cpp
parent3a2a3c681b88e331a4925e6edf8d8e5dbff05f6e (diff)
downloadlibcalendaring-76178c821932ada88863877e9652056a84cb1018.tar.gz
made kimap build
Diffstat (limited to 'kimap/loginjob.cpp')
-rw-r--r--kimap/loginjob.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kimap/loginjob.cpp b/kimap/loginjob.cpp
index af0d912..d2d11e3 100644
--- a/kimap/loginjob.cpp
+++ b/kimap/loginjob.cpp
@@ -92,7 +92,7 @@ using namespace KIMAP;
bool LoginJobPrivate::sasl_interact()
{
- kDebug() <<"sasl_interact";
+ qDebug() <<"sasl_interact";
sasl_interact_t *interact = client_interact;
//some mechanisms do not require username && pass, so it doesn't need a popup
@@ -107,16 +107,16 @@ bool LoginJobPrivate::sasl_interact()
interact = client_interact;
while( interact->id != SASL_CB_LIST_END ) {
- kDebug() <<"SASL_INTERACT id:" << interact->id;
+ qDebug() <<"SASL_INTERACT id:" << interact->id;
switch( interact->id ) {
case SASL_CB_USER:
case SASL_CB_AUTHNAME:
- kDebug() <<"SASL_CB_[USER|AUTHNAME]: '" << userName <<"'";
+ qDebug() <<"SASL_CB_[USER|AUTHNAME]: '" << userName <<"'";
interact->result = strdup( userName.toUtf8() );
interact->len = strlen( (const char *) interact->result );
break;
case SASL_CB_PASS:
- kDebug() <<"SASL_CB_PASS: [hidden]";
+ qDebug() <<"SASL_CB_PASS: [hidden]";
interact->result = strdup( password.toUtf8() );
interact->len = strlen( (const char *) interact->result );
break;
@@ -340,7 +340,7 @@ void LoginJob::handleResponse( const Message &response )
authModeSupported = true;
}
}
- kDebug() << "Capabilities after STARTTLS: " << d->capabilities;
+ qDebug() << "Capabilities after STARTTLS: " << d->capabilities;
if (!authModeSupported) {
setError( UserDefinedError );
setErrorText( i18n("Login failed, authentication mode %1 is not supported by the server.", d->authMode) );
@@ -366,7 +366,7 @@ bool LoginJobPrivate::startAuthentication()
int result = sasl_client_new( "imap", m_session->hostName().toLatin1(), 0, 0, callbacks, 0, &conn );
if ( result != SASL_OK ) {
- kDebug() <<"sasl_client_new failed with:" << result;
+ qDebug() <<"sasl_client_new failed with:" << result;
q->setError( LoginJob::UserDefinedError );
q->setErrorText( QString::fromUtf8( sasl_errdetail( conn ) ) );
return false;
@@ -385,7 +385,7 @@ bool LoginJobPrivate::startAuthentication()
} while ( result == SASL_INTERACT );
if ( result != SASL_CONTINUE && result != SASL_OK ) {
- kDebug() <<"sasl_client_start failed with:" << result;
+ qDebug() <<"sasl_client_start failed with:" << result;
q->setError( LoginJob::UserDefinedError );
q->setErrorText( QString::fromUtf8( sasl_errdetail( conn ) ) );
sasl_dispose( &conn );
@@ -426,7 +426,7 @@ bool LoginJobPrivate::answerChallenge(const QByteArray &data)
} while ( result == SASL_INTERACT );
if ( result != SASL_CONTINUE && result != SASL_OK ) {
- kDebug() <<"sasl_client_step failed with:" << result;
+ qDebug() <<"sasl_client_step failed with:" << result;
q->setError( LoginJob::UserDefinedError ); //TODO: check up the actual error
q->setErrorText( QString::fromUtf8( sasl_errdetail( conn ) ) );
sasl_dispose( &conn );
@@ -530,4 +530,4 @@ QString LoginJob::serverGreeting() const
return d->serverGreeting;
}
-#include "moc_loginjob.cpp"
+// #include "moc_loginjob.cpp"