Messagelib
8 #include "scamdetectioninfo.h"
9 using namespace MessageViewer;
10 ScamDetectionInfo::ScamDetectionInfo() =
default;
12 ScamDetectionInfo::~ScamDetectionInfo() =
default;
14 const QString &ScamDetectionInfo::domainOrEmail()
const
16 return mDomainOrEmail;
19 void ScamDetectionInfo::setDomainOrEmail(
const QString &newDomainOrEmail)
21 mDomainOrEmail = newDomainOrEmail;
24 bool ScamDetectionInfo::enabled()
const
29 void ScamDetectionInfo::setEnabled(
bool newEnabled)
31 mEnabled = newEnabled;
34 bool ScamDetectionInfo::isValid()
const
36 return !mDomainOrEmail.
isEmpty();
46 d <<
"isValid: " << t.isValid();
47 d <<
"Enabled " << t.enabled();
48 d <<
"DomainOrName " << t.domainOrEmail();
49 d <<
"scamChecks " << t.scamChecks();
55 return domainOrEmail() == other.domainOrEmail() && enabled() == other.enabled() && scamChecks() == other.scamChecks();
QDataStream & operator<<(QDataStream &out, const KDateTime &dateTime)
bool isEmpty() const const
The ScamDetectionInfo class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Mar 22 2023 04:07:15 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.