8#include "scamdetectioninfo.h"
9using namespace MessageViewer;
10ScamDetectionInfo::ScamDetectionInfo() =
default;
12ScamDetectionInfo::~ScamDetectionInfo() =
default;
14const QString &ScamDetectionInfo::domainOrEmail()
const
16 return mDomainOrEmail;
19void ScamDetectionInfo::setDomainOrEmail(
const QString &newDomainOrEmail)
21 mDomainOrEmail = newDomainOrEmail;
24bool ScamDetectionInfo::enabled()
const
29void ScamDetectionInfo::setEnabled(
bool newEnabled)
31 mEnabled = newEnabled;
34bool ScamDetectionInfo::isValid()
const
36 return !mDomainOrEmail.
isEmpty();
46 d.
space() <<
"isValid" << t.isValid();
47 d.
space() <<
"Enabled" << t.enabled();
48 d.
space() <<
"DomainOrName" << t.domainOrEmail();
49 d.
space() <<
"scamChecks" << t.scamChecks();
55 return domainOrEmail() == other.domainOrEmail() && enabled() == other.enabled() && scamChecks() == other.scamChecks();
The ScamDetectionInfo class.
KTEXTEDITOR_EXPORT QDebug operator<<(QDebug s, const MovingCursor &cursor)
bool isEmpty() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:46:45 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.