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
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
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
QString number(int n, int base)
virtual void readConfig(KConfigGroup *config)
Definition: articlematcher.cpp:143
~ArticleMatcher()
Definition: articlematcher.cpp:236
int toInt(bool *ok) const
bool operator==(const AbstractMatcher &other) const
Definition: articlematcher.cpp:295
Type nameToType(const char *name)
bool matches(const Article &article) const
Definition: articlematcher.cpp:246
Definition: article.h:41
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
const char * typeName() const
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:63
QString fromLatin1(const char *str, int size)
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
QString toString() const
void writeConfig(KConfigGroup *config) const
Definition: articlematcher.cpp:259
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.