• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kmail

KMSearchRuleStatus Class Reference

#include <kmsearchpattern.h>

Inheritance diagram for KMSearchRuleStatus:

Inheritance graph
[legend]

List of all members.


Detailed Description

This class represents a search to be performed against the status of a messsage.

The status is represented by a bitfield. This class represents a search pattern rule operating on message status.

Definition at line 283 of file kmsearchpattern.h.


Public Member Functions

virtual bool isEmpty () const
 KMSearchRuleStatus (MessageStatus status, Function function=FuncContains)
 KMSearchRuleStatus (const QByteArray &field=0, Function function=FuncContains, const QString &contents=QString())
virtual bool matches (const KMMessage *msg) const

Static Public Member Functions

static MessageStatus statusFromEnglishName (const QString &)

Constructor & Destructor Documentation

KMSearchRuleStatus::KMSearchRuleStatus ( const QByteArray &  field = 0,
Function  function = FuncContains,
const QString &  contents = QString() 
) [explicit]

Definition at line 636 of file kmsearchpattern.cpp.

KMSearchRuleStatus::KMSearchRuleStatus ( MessageStatus  status,
Function  function = FuncContains 
)


Member Function Documentation

bool KMSearchRuleStatus::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. KFilter should make sure that it's rule list contains only non-empty rules, as matches doesn't check this.

Implements KMSearchRule.

Definition at line 662 of file kmsearchpattern.cpp.

bool KMSearchRuleStatus::matches ( const KMMessage *  msg  )  const [virtual]

Tries to match the rule against the given KMMessage.

Returns:
true if the rule matched, false otherwise. Must be implemented by subclasses.

Implements KMSearchRule.

Definition at line 667 of file kmsearchpattern.cpp.

MessageStatus KMSearchRuleStatus::statusFromEnglishName ( const QString &  aStatusString  )  [static]

Definition at line 651 of file kmsearchpattern.cpp.


The documentation for this class was generated from the following files:
  • kmsearchpattern.h
  • kmsearchpattern.cpp

kmail

Skip menu "kmail"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal