knode
#include <kscoring.h>
Public Types | |
| typedef Q3PtrList< ActionBase > | ActionList |
| typedef QStringList | GroupList |
| enum | LinkMode { AND, OR } |
| typedef Q3PtrList < KScoringExpression > | ScoreExprList |
Public Member Functions | |
| KScoringRule (const QString &name) | |
| KScoringRule (const KScoringRule &r) | |
| ~KScoringRule () | |
| void | addAction (int, const QString &) |
| void | addAction (ActionBase *) |
| void | addExpression (KScoringExpression *) |
| void | addGroup (const QString &group) |
| void | applyAction (ScorableArticle &a) const |
| void | applyRule (ScorableArticle &a) const |
| void | applyRule (ScorableArticle &a, const QString &group) const |
| void | cleanActions () |
| void | cleanExpressions () |
| ActionList | getActions () const |
| QDate | getExpireDate () const |
| QString | getExpireDateString () const |
| ScoreExprList | getExpressions () const |
| QStringList | getGroups () const |
| LinkMode | getLinkMode () const |
| QString | getLinkModeName () const |
| QString | getName () const |
| bool | isExpired () const |
| bool | matchGroup (const QString &group) const |
| void | setExpire (const QString &exp) |
| void | setExpireDate (const QDate &d) |
| void | setGroups (const QStringList &l) |
| void | setLinkMode (const QString &link) |
| void | setLinkMode (LinkMode m) |
| QString | toString () const |
| void | updateXML (QDomElement &e, QDomDocument &d) |
| void | write (QTextStream &) const |
Protected Member Functions | |
| void | setName (const QString &n) |
Detailed Description
Definition at line 227 of file kscoring.h.
Member Typedef Documentation
| typedef Q3PtrList<ActionBase> KPIM::KScoringRule::ActionList |
Definition at line 236 of file kscoring.h.
| typedef QStringList KPIM::KScoringRule::GroupList |
Definition at line 237 of file kscoring.h.
| typedef Q3PtrList<KScoringExpression> KPIM::KScoringRule::ScoreExprList |
Definition at line 235 of file kscoring.h.
Member Enumeration Documentation
| Enumerator | |
|---|---|
| AND | |
| OR | |
Definition at line 238 of file kscoring.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 634 of file kscoring.cpp.
| KScoringRule::KScoringRule | ( | const KScoringRule & | r | ) |
Definition at line 641 of file kscoring.cpp.
| KScoringRule::~KScoringRule | ( | ) |
Definition at line 669 of file kscoring.cpp.
Member Function Documentation
| void KScoringRule::addAction | ( | int | type, |
| const QString & | val | ||
| ) |
Definition at line 693 of file kscoring.cpp.
| void KScoringRule::addAction | ( | ActionBase * | a | ) |
Definition at line 699 of file kscoring.cpp.
| void KScoringRule::addExpression | ( | KScoringExpression * | expr | ) |
Definition at line 687 of file kscoring.cpp.
|
inline |
Definition at line 266 of file kscoring.h.
| void KScoringRule::applyAction | ( | ScorableArticle & | a | ) | const |
Definition at line 735 of file kscoring.cpp.
| void KScoringRule::applyRule | ( | ScorableArticle & | a | ) | const |
Definition at line 743 of file kscoring.cpp.
| void KScoringRule::applyRule | ( | ScorableArticle & | a, |
| const QString & | group | ||
| ) | const |
Definition at line 763 of file kscoring.cpp.
| void KScoringRule::cleanActions | ( | ) |
Definition at line 681 of file kscoring.cpp.
| void KScoringRule::cleanExpressions | ( | ) |
Definition at line 675 of file kscoring.cpp.
|
inline |
Definition at line 253 of file kscoring.h.
|
inline |
Definition at line 249 of file kscoring.h.
| QString KScoringRule::getExpireDateString | ( | ) | const |
Definition at line 814 of file kscoring.cpp.
|
inline |
Definition at line 252 of file kscoring.h.
|
inline |
Definition at line 244 of file kscoring.h.
|
inline |
Definition at line 246 of file kscoring.h.
| QString KScoringRule::getLinkModeName | ( | ) | const |
Definition at line 802 of file kscoring.cpp.
|
inline |
Definition at line 243 of file kscoring.h.
| bool KScoringRule::isExpired | ( | ) | const |
Definition at line 826 of file kscoring.cpp.
| bool KScoringRule::matchGroup | ( | const QString & | group | ) | const |
Definition at line 724 of file kscoring.cpp.
| void KScoringRule::setExpire | ( | const QString & | exp | ) |
Definition at line 714 of file kscoring.cpp.
|
inline |
Definition at line 250 of file kscoring.h.
|
inline |
Definition at line 245 of file kscoring.h.
| void KScoringRule::setLinkMode | ( | const QString & | link | ) |
Definition at line 705 of file kscoring.cpp.
|
inline |
Definition at line 263 of file kscoring.h.
|
inlineprotected |
assert that the name is unique
Definition at line 278 of file kscoring.h.
| QString KScoringRule::toString | ( | ) | const |
Definition at line 779 of file kscoring.cpp.
| void KPIM::KScoringRule::updateXML | ( | QDomElement & | e, |
| QDomDocument & | d | ||
| ) |
| void KScoringRule::write | ( | QTextStream & | s | ) | const |
Definition at line 774 of file kscoring.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:37 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference