akregator
articlematcher.cpp
Go to the documentation of this file.
138 config->writeEntry(QString::fromLatin1("objectType"), QString::fromLatin1(m_object.typeName()));
146 m_predicate = stringToPredicate(config->readEntry(QString::fromLatin1("predicate"), QString()));
147 QVariant::Type type = QVariant::nameToType(config->readEntry(QString::fromLatin1("objType"), QString()).toLatin1());
193 satisfied = concreteSubject.toString().indexOf( m_object.toString(), 0, Qt::CaseInsensitive ) != -1;
261 config->writeEntry(QString::fromLatin1("matcherAssociation"), associationToString(m_association));
280 m_association = stringToAssociation(config->readEntry(QString::fromLatin1("matcherAssociation"), QString()));
bool satisfiedBy(const Article &article) const
Definition: articlematcher.cpp:155
AbstractMatcher()
Definition: articlematcher.cpp:44
static QString subjectToString(Subject subj)
Definition: articlematcher.cpp:48
Abstract base class for matchers, a matcher just takes an article and checks whether the article matc...
Definition: articlematcher.h:50
ArticleMatcher()
Definition: articlematcher.cpp:231
bool operator!=(const AbstractMatcher &other) const
Definition: articlematcher.cpp:304
virtual void readConfig(KConfigGroup *config)
Definition: articlematcher.cpp:143
~ArticleMatcher()
Definition: articlematcher.cpp:236
bool operator==(const AbstractMatcher &other) const
Definition: articlematcher.cpp:295
bool matches(const Article &article) const
Definition: articlematcher.cpp:246
a powerful matcher supporting multiple criterions, which can be combined via logical OR or AND ...
Definition: articlematcher.h:75
static Predicate stringToPredicate(const QString &predStr)
Definition: articlematcher.cpp:105
Predicate predicate() const
Definition: articlematcher.cpp:221
static Subject stringToSubject(const QString &subjStr)
Definition: articlematcher.cpp:69
A proxy class for Syndication::ItemPtr with some additional methods to assist sorting.
Definition: article.h:61
static QString predicateToString(Predicate pred)
Definition: articlematcher.cpp:88
void readConfig(KConfigGroup *config)
Definition: articlematcher.cpp:277
virtual void writeConfig(KConfigGroup *config) const
Definition: articlematcher.cpp:132
virtual ~AbstractMatcher()
Definition: articlematcher.cpp:46
void writeConfig(KConfigGroup *config) const
Definition: articlematcher.cpp:259
Definition: article.h:39
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.