knode
kscoring.cpp
Go to the documentation of this file.
983 // must be place after it, otherwise the cancel button of the editor is not effective (bug #101092).
void setCodec(QTextCodec *codec)
virtual QString from() const =0
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
Definition: kscoring.h:195
static int getTypeForName(const QString &name)
Definition: kscoring.cpp:206
KScoringManager(const QString &appName=QString())
Definition: kscoring.cpp:834
QDomNode item(int index) const
short toShort(bool *ok, int base) const
void top(Q3PtrList< KScoringRule > &)
like pop but without dropping the TOS
Definition: kscoring.cpp:1284
Definition: kscoring.h:101
virtual void clear()
QString name() const
QString attribute(const QString &name, const QString &defValue) const
virtual void displayMessage(const QString &)
Definition: kscoring.cpp:141
type * first()
virtual QByteArray text(quint32 serialNumber) const =0
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
Definition: kscoringeditor.h:261
void moveRuleBelow(KScoringRule *below, KScoringRule *above)
Definition: kscoring.cpp:1087
void editRule(KScoringRule *e, QWidget *w=0)
Definition: kscoring.cpp:1065
const T & at(int i) const
void insert(const QString &key, const type *item)
void finishedEditing()
void addNote(const ScorableArticle &, const QString &)
Definition: kscoring.cpp:379
bool matchGroup(const QString &group) const
Definition: kscoring.cpp:724
virtual void apply(ScorableArticle &article) const
Definition: kscoring.cpp:359
Definition: kscoring.h:227
Q3PtrList< KScoringRule > ScoringRuleList
Definition: kscoring.h:320
NodeType nodeType() const
void pop(Q3PtrList< KScoringRule > &)
clears the argument list and copy the content of the TOS into it after that the TOS gets dropped ...
Definition: kscoring.cpp:1276
virtual QString subject() const =0
Definition: kscoring.h:59
int month() const
QDomNodeList childNodes() const
Definition: kscoring.h:94
Definition: kscoring.h:240
void applyAction(ScorableArticle &a) const
Definition: kscoring.cpp:735
Definition: kscoring.h:120
type * current() const
Definition: kscoring.h:96
type * next()
Definition: kscoring.h:419
virtual ActionBase * clone() const =0
void append(const type *item)
void setPattern(const QString &pattern)
QDomElement toElement() const
int matchedLength() const
int indexIn(const QString &str, int offset, CaretMode caretMode) const
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
int count() const
QString number(int n, int base)
int count(const T &value) const
Definition: kscoring.h:193
void append(const T &value)
static void display(ScorableArticle &, const QString &)
Definition: kscoring.cpp:111
Definition: kscoring.h:185
KScoringRule * findRule(const QString &)
Definition: kscoring.cpp:1172
Definition: kscoring.h:139
bool isNull() const
bool insert(uint index, const type *item)
bool setYMD(int y, int m, int d)
void changedRules()
int toInt(bool *ok, int base) const
bool isEmpty() const
int day() const
bool isValid() const
void moveRuleAbove(KScoringRule *above, KScoringRule *below)
Definition: kscoring.cpp:1073
void addExpression(KScoringExpression *)
Definition: kscoring.cpp:687
typedef Iterator
static int getTypeForUserName(const QString &name)
Definition: kscoring.cpp:223
virtual uint count() const
int year() const
void setText(const QString &)
Definition: kscoring.h:155
int findRef(const type *item)
iterator end()
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
Definition: kscoring.h:190
void displayCollection(QWidget *p=0) const
Definition: kscoring.cpp:414
Definition: kscoring.h:192
type * take(uint index)
void editorReady()
called from an editor whenever it finishes editing the rule base, causes the finishedEditing signal t...
Definition: kscoring.cpp:1101
iterator end()
QString toLower() const
type * find(const QString &key) const
void setCaseSensitivity(Qt::CaseSensitivity cs)
void applyRules(ScorableArticle &article, const QString &group)
Definition: kscoring.cpp:1121
type * current() const
static QStringList conditionNames()
Definition: kscoring.cpp:510
Definition: kscoring.h:239
virtual void close()
void setRuleName(KScoringRule *, const QString &)
Definition: kscoring.cpp:1030
bool isNull() const
void setChecked(bool)
QString & replace(int position, int n, QChar after)
static KScoringEditor * createEditor(KScoringManager *m, QWidget *parent=0)
Definition: kscoringeditor.cpp:996
The following classes ScorableArticle, ScorableGroup define the interface for the scoring...
Definition: kscoring.h:53
Definition: kscoring.h:191
void save(QTextStream &str, int indent) const
void changedRuleName(const QString &oldName, const QString &newName)
QString currentKey() const
virtual QString toString() const =0
Definition: kscoring.h:97
static QString getNameForCondition(int)
Definition: kscoring.cpp:487
QDate currentDate()
typedef ConstIterator
int length() const
static int getConditionForName(const QString &)
Definition: kscoring.cpp:465
Definition: kscoring.h:194
iterator insert(const Key &key, const T &value)
bool remove(uint index)
QString tagName() const
typedef Iterator
bool hasRulesForCurrentGroup()
Definition: kscoring.cpp:1157
virtual QString getHeaderByType(const QString &) const =0
QString getExpireDateString() const
Definition: kscoring.cpp:814
virtual QStringList getDefaultHeaders() const
returns a list of common (or available) headers defaults to returning { Subject, From, Message-ID, Date }
Definition: kscoring.cpp:1233
static ActionBase * factory(int type, const QString &value)
Definition: kscoring.cpp:172
iterator find(const Key &key)
iterator begin()
void push(Q3PtrList< KScoringRule > &)
puts the list on the stack, doesn't change the list
Definition: kscoring.cpp:1265
KScoringExpression(const QString &, const QString &, const QString &, const QString &)
Definition: kscoring.cpp:432
Definition: kscoring.h:95
bool setContent(const QByteArray &data, bool namespaceProcessing, QString *errorMsg, int *errorLine, int *errorColumn)
int remove(const Key &key)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:18 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:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.