akregator/src

Akregator::Filters::ArticleMatcher Class Reference

#include <articlefilter.h>

Inheritance diagram for Akregator::Filters::ArticleMatcher:
Akregator::Filters::AbstractMatcher

Public Types

enum  Association { None, LogicalAnd, LogicalOr }
 

Public Member Functions

 ArticleMatcher (const TQValueList< Criterion > &criteria, Association assoc)
 
 ArticleMatcher (const ArticleMatcher &other)
 
virtual bool matchesAll () const
 
ArticleMatcheroperator= (const ArticleMatcher &other)
 
virtual ArticleMatcherclone () const
 
virtual bool matches (const Article &article) const
 
virtual bool operator== (const AbstractMatcher &other) const
 
virtual bool operator!= (const AbstractMatcher &other) const
 
virtual void writeConfig (TDEConfig *config) const
 
virtual void readConfig (TDEConfig *config)
 

Detailed Description

a powerful matcher supporting multiple criterions, which can be combined via logical OR or AND

Author
Frerich Raabe

Definition at line 216 of file articlefilter.h.

Member Function Documentation

◆ clone()

ArticleMatcher * Akregator::Filters::ArticleMatcher::clone ( ) const
virtual

returns a copy of the matcher

Implements Akregator::Filters::AbstractMatcher.

Definition at line 234 of file articlefilter.cpp.

◆ matchesAll()

bool Akregator::Filters::ArticleMatcher::matchesAll ( ) const
virtual

returns whether the matcher matches all articles anyway (empty criteria list), so there is no need to call matches() at all.

Definition at line 229 of file articlefilter.cpp.


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