Commit 4394c3ea authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Return checks info

parent 86c1bee3
Pipeline #95371 canceled with stage
......@@ -42,8 +42,7 @@ bool ScamDetectionInfo::isValid() const
ScamDetectionInfo::ScamDetectionFields ScamDetectionInfo::scamChecks() const
{
// TODO
return {};
return mFields;
}
QDebug operator<<(QDebug d, const MessageViewer::ScamDetectionInfo &t)
......@@ -51,6 +50,7 @@ QDebug operator<<(QDebug d, const MessageViewer::ScamDetectionInfo &t)
d << "isValid: " << t.isValid();
d << "Enabled " << t.enabled();
d << "DomainOrName " << t.domainOrEmail();
d << "scamChecks " << t.scamChecks();
return d;
}
......
......@@ -41,6 +41,7 @@ public:
Q_REQUIRED_RESULT bool operator==(const ScamDetectionInfo &other) const;
private:
ScamDetectionFields mFields;
QString mDomainOrEmail;
bool mEnabled = false;
};
......
Supports Markdown
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