Commit b0e64e06 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Move code in cpp file. Fix comment. Remove debug

parent 0eac2dc0
......@@ -51,7 +51,6 @@ QVector<DKIMCheckSignatureJob::CheckSignatureResult> DKIMAuthenticationStatusInf
DKIMCheckSignatureJob::CheckSignatureResult convertedResult;
const QString &method = info.method;
convertedResult.authenticationResult.methodStr = method;
qDebug() << " method" << method;
const QString &infoResult = info.result;
if (infoResult == QLatin1String("none")) {
convertedResult.status = DKIMCheckSignatureJob::DKIMStatus::EmailNotSigned;
......
......@@ -687,3 +687,8 @@ QDebug operator <<(QDebug d, const DKIMCheckSignatureJob::CheckSignatureResult::
d << "errorStr " << t.errorStr;
return d;
}
bool DKIMCheckSignatureJob::CheckSignatureResult::AuthenticationResult::operator==(const DKIMCheckSignatureJob::CheckSignatureResult::AuthenticationResult &other) const
{
return errorStr == other.errorStr && methodStr == other.methodStr;
}
......@@ -95,11 +95,9 @@ public:
QString fromEmail;
struct AuthenticationResult {
QString errorStr; //Use when we convert authentication result value
QString methodStr; //Use when we convert authentication method value : Use enum ?
Q_REQUIRED_RESULT bool operator==(const AuthenticationResult &other) const {
return errorStr == other.errorStr && methodStr == other.methodStr;
}
QString errorStr;
QString methodStr; // Use enum ?
Q_REQUIRED_RESULT bool operator==(const AuthenticationResult &other) const;
};
AuthenticationResult authenticationResult;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment