KDE PIM / Developers / API Docs / kmail

KMSearchRuleNumerical Class Reference

This class represents a search to be performed against a numerical value, such as the age of the message in days or its size.This class represents a search pattern rule operating on numerical values. More...

#include <kmsearchpattern.h>

Inherits KMSearchRule.

List of all members.

Public Member Functions


Detailed Description

This class represents a search to be performed against a numerical value, such as the age of the message in days or its size.This class represents a search pattern rule operating on numerical values.


Member Function Documentation

bool KMSearchRuleNumerical::isEmpty  )  const [virtual]
 

Determine whether the rule is worth considering.

It isn't if either the field is not set or the contents is empty.

See also:
KFilter should make sure that it's rule list contains only non-empty rules, as

matches doesn't check this.

Implements KMSearchRule.

bool KMSearchRuleNumerical::matches const KMMessage *  msg  )  const [virtual]
 

Tries to match the rule against the given.

See also:
KMMessage.
Returns:
TRUE if the rule matched, FALSE otherwise. Must be implemented by subclasses.

Implements KMSearchRule.

bool KMSearchRuleNumerical::matchesInternal long  numericalValue,
long  numericalMsgContents,
const QString &  msgContents
const
 

Helper for the main matches() method.

Does the actual comparing.


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