KMail::SpamScore Class Reference

#include <spamheaderanalyzer.h>

Public Member Functions

 SpamScore (const TQString &agent, float score, const TQString &header)
 
TQString agent () const
 
float score () const
 
TQString spamHeader () const
 

Detailed Description

A simple tupel of agent, score and header.

The score returned is positive if no error has occurred. Negative values indicate the following errors: -1.0 Unintialized struct used -2.0 Error extracing agent string -3.0 Couldn't convert score to float -4.0 Couldn't convert threshold to float or threshold is negative -5.0 Couldn't find the score field -6.0 Couldn't find the threshold field

Definition at line 56 of file spamheaderanalyzer.h.

Constructor & Destructor Documentation

◆ SpamScore() [1/2]

KMail::SpamScore::SpamScore ( )
inline

Definition at line 58 of file spamheaderanalyzer.h.

◆ SpamScore() [2/2]

KMail::SpamScore::SpamScore ( const TQString &  agent,
float  score,
const TQString &  header 
)
inline

Definition at line 59 of file spamheaderanalyzer.h.

Member Function Documentation

◆ agent()

TQString KMail::SpamScore::agent ( ) const
inline

Definition at line 61 of file spamheaderanalyzer.h.

◆ score()

float KMail::SpamScore::score ( ) const
inline

Definition at line 62 of file spamheaderanalyzer.h.

◆ spamHeader()

TQString KMail::SpamScore::spamHeader ( ) const
inline

Definition at line 63 of file spamheaderanalyzer.h.


The documentation for this class was generated from the following file: