From 5f27815267933b356b919e33440421d8904edc5e Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 8 Sep 2011 20:11:36 +0300 Subject: [PATCH] corrected some spelling errors... --- src/smtpclient.cpp | 14 +++++++------- src/smtpclient.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/smtpclient.cpp b/src/smtpclient.cpp index cf9cf15..fca3ea8 100644 --- a/src/smtpclient.cpp +++ b/src/smtpclient.cpp @@ -197,10 +197,10 @@ bool SmtpClient::login(const QString &user, const QString &password, AuthMethod // Wait for the server's response waitForResponse(); - // If the response is not 235 then the authification was faild + // If the response is not 235 then the authentication was faild if (responseCode != 235) { - emit smtpError(AuthentificationFailedError); + emit smtpError(AuthenticationFailedError); return false; } } @@ -211,14 +211,14 @@ bool SmtpClient::login(const QString &user, const QString &password, AuthMethod // Wait for 334 response code waitForResponse(); - if (responseCode != 334) { emit smtpError(AuthentificationFailedError); return false; } + if (responseCode != 334) { emit smtpError(AuthenticationFailedError); return false; } // Send the username in base64 sendMessage(QByteArray().append(user).toBase64()); // Wait for 334 waitForResponse(); - if (responseCode != 334) { emit smtpError(AuthentificationFailedError); return false; } + if (responseCode != 334) { emit smtpError(AuthenticationFailedError); return false; } // Send the password in base64 sendMessage(QByteArray().append(password).toBase64()); @@ -226,10 +226,10 @@ bool SmtpClient::login(const QString &user, const QString &password, AuthMethod // Wait for the server's responce waitForResponse(); - // If the response is not 235 then the authification was faild + // If the response is not 235 then the authentication was faild if (responseCode != 235) { - emit smtpError(AuthentificationFailedError); + emit smtpError(AuthenticationFailedError); return false; } } @@ -237,7 +237,7 @@ bool SmtpClient::login(const QString &user, const QString &password, AuthMethod catch (ResponseTimeoutException e) { // Responce Timeout exceeded - emit smtpError(AuthentificationFailedError); + emit smtpError(AuthenticationFailedError); return false; } diff --git a/src/smtpclient.h b/src/smtpclient.h index 8a3c0ca..bddb620 100644 --- a/src/smtpclient.h +++ b/src/smtpclient.h @@ -40,7 +40,7 @@ public: { ConnectionTimeoutError, ResponseTimeoutError, - AuthentificationFailedError, + AuthenticationFailedError, ServerError, // 4xx smtp error ClientError // 5xx smtp error };