KItinerary::ExtractorFilter

Search for usage in LXR

KItinerary::ExtractorFilter Class Reference

#include <extractorfilter.h>

Public Types

enum  Scope {
  Current, Parent, Children, Ancestors,
  Descendants
}
 

Public Member Functions

 ExtractorFilter (const ExtractorFilter &)
 
 ExtractorFilter (ExtractorFilter &&) noexcept
 
void allMatches (const ExtractorDocumentNode &node, std::vector< ExtractorDocumentNode > &matches) const
 
QString fieldName () const
 
bool matches (const QString &data) const
 
bool matches (const ExtractorDocumentNode &node) const
 
QString mimeType () const
 
ExtractorFilteroperator= (const ExtractorFilter &)
 
ExtractorFilteroperator= (ExtractorFilter &&)
 
QString pattern () const
 
Scope scope () const
 

Detailed Description

Determines whether an extractor is applicable to a given email.

Definition at line 23 of file extractorfilter.h.

Member Enumeration Documentation

Specifies which document nodes should match this filter, relative to the one being extracted.

Enumerator
Current 

match the node being extracted

Parent 

match the direct parent node

Children 

match the direct child nodes

Ancestors 

match any direct or indirect parent nodes

Descendants 

match any direct or indirect child nodes

Definition at line 44 of file extractorfilter.h.

Member Function Documentation

void ExtractorFilter::allMatches ( const ExtractorDocumentNode node,
std::vector< ExtractorDocumentNode > &  matches 
) const

Checks whether this filter applies to node.

Unlike matches() this returns all nodes triggering this filter. This matters in particular for matching child nodes, where multiple ones can match the filter.

Definition at line 228 of file extractorfilter.cpp.

QString ExtractorFilter::fieldName ( ) const

The field to filter on.

Definition at line 53 of file extractorfilter.cpp.

bool ExtractorFilter::matches ( const QString data) const

Check if data matches this filter.

Definition at line 64 of file extractorfilter.cpp.

bool ExtractorFilter::matches ( const ExtractorDocumentNode node) const

Checks whether this filter applies to node.

Definition at line 207 of file extractorfilter.cpp.

QString ExtractorFilter::mimeType ( ) const

MIME type of the document part this filter can match.

Definition at line 42 of file extractorfilter.cpp.

QString ExtractorFilter::pattern ( ) const

Pattern to match field value against.

Definition at line 115 of file extractorfilter.cpp.

ExtractorFilter::Scope ExtractorFilter::scope ( ) const

Evaluation scope of this filter, in relation to the node being extracted.

Definition at line 126 of file extractorfilter.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Nov 30 2021 23:06:14 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.