MessageViewer::SpamScore

Search for usage in LXR

MessageViewer::SpamScore Class Reference

#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]

MessageViewer::SpamScore::SpamScore ( )
inline

Definition at line 49 of file spamheaderanalyzer.h.

◆ SpamScore() [2/2]

MessageViewer::SpamScore::SpamScore ( const QString & agent,
SpamError error,
float score,
float confidence,
const QString & header,
const QString & cheader )
inline

Definition at line 56 of file spamheaderanalyzer.h.

Member Function Documentation

◆ agent()

QString MessageViewer::SpamScore::agent ( ) const
inlinenodiscard

Definition at line 66 of file spamheaderanalyzer.h.

◆ confidence()

float MessageViewer::SpamScore::confidence ( ) const
inlinenodiscard

Definition at line 76 of file spamheaderanalyzer.h.

◆ confidenceHeader()

QString MessageViewer::SpamScore::confidenceHeader ( ) const
inlinenodiscard

Definition at line 91 of file spamheaderanalyzer.h.

◆ error()

SpamError MessageViewer::SpamScore::error ( ) const
inlinenodiscard

Definition at line 81 of file spamheaderanalyzer.h.

◆ score()

float MessageViewer::SpamScore::score ( ) const
inlinenodiscard

Definition at line 71 of file spamheaderanalyzer.h.

◆ spamHeader()

QString MessageViewer::SpamScore::spamHeader ( ) const
inlinenodiscard

Definition at line 86 of file spamheaderanalyzer.h.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
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.