MessageViewer::SpamScore
#include <spamheaderanalyzer.h>
Public Member Functions | |
SpamScore (const QString &agent, SpamError error, float score, float confidence, const QString &header, const QString &cheader) | |
QString | agent () const |
float | confidence () const |
QString | confidenceHeader () const |
SpamError | error () const |
float | score () const |
QString | spamHeader () const |
Detailed Description
A simple tuple of error, agent, score, confidence and header.
The score returned is positive if no error has occurred. error values indicate the following errors: noError Spam Headers successfully parsed uninitializedStructUsed Uninitialized struct used errorExtractingAgentString Error extracting agent string couldNotConverScoreToFloat Couldn't convert score to float couldNotConvertThresholdToFloatOrThresholdIsNegative Couldn't convert threshold to float or threshold is negative couldNotFindTheScoreField Couldn't find the score field couldNotFindTheThresholdField Couldn't find the threshold field couldNotConvertConfidenceToFloat Couldn't convert confidence to float
Definition at line 46 of file spamheaderanalyzer.h.
Constructor & Destructor Documentation
◆ SpamScore() [1/2]
|
inline |
Definition at line 49 of file spamheaderanalyzer.h.
◆ SpamScore() [2/2]
|
inline |
Definition at line 56 of file spamheaderanalyzer.h.
Member Function Documentation
◆ agent()
|
inlinenodiscard |
Definition at line 66 of file spamheaderanalyzer.h.
◆ confidence()
|
inlinenodiscard |
Definition at line 76 of file spamheaderanalyzer.h.
◆ confidenceHeader()
|
inlinenodiscard |
Definition at line 91 of file spamheaderanalyzer.h.
◆ error()
|
inlinenodiscard |
Definition at line 81 of file spamheaderanalyzer.h.
◆ score()
|
inlinenodiscard |
Definition at line 71 of file spamheaderanalyzer.h.
◆ spamHeader()
|
inlinenodiscard |
Definition at line 86 of file spamheaderanalyzer.h.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.