kmail
KMail::FilterLog Class Reference
#include <filterlog.h>
Detailed Description
KMail Filter Log Collector.
- Author:
- Andreas Gungl <a.gungl@gmx.de>
Definition at line 53 of file filterlog.h.
Public Types | |
| meta = 1 | |
| patternDesc = 2 | |
| ruleResult = 4 | |
| patternResult = 8 | |
| appliedAction = 16 | |
| enum | ContentType { meta = 1, patternDesc = 2, ruleResult = 4, patternResult = 8, appliedAction = 16 } |
Signals | |
| void | logEntryAdded (QString) |
| void | logShrinked () |
| void | logStateChanged () |
Public Member Functions | |
| bool | isLogging () |
| void | setLogging (bool active) |
| void | setMaxLogSize (long size=-1) |
| long | getMaxLogSize () |
| void | setContentTypeEnabled (ContentType contentType, bool b) |
| bool | isContentTypeEnabled (ContentType contentType) |
| void | add (QString logEntry, ContentType contentType) |
| void | addSeparator () |
| void | clear () |
| const QStringList & | getLogEntries () |
| void | dump () |
| bool | saveToFile (QString fileName) |
| virtual | ~FilterLog () |
Static Public Member Functions | |
| static FilterLog * | instance () |
| static QString | recode (const QString &plain) |
Protected Member Functions | |
| FilterLog () | |
| void | checkLogSize () |
Protected Attributes | |
| QStringList | mLogEntries |
| bool | mLogging |
| long | mMaxLogSize |
| long | mCurrentLogSize |
| int | mAllowedTypes |
Member Enumeration Documentation
Constructor & Destructor Documentation
| FilterLog::~FilterLog | ( | ) | [virtual] |
| FilterLog::FilterLog | ( | ) | [protected] |
Non-public constructor needed by the singleton implementation.
Definition at line 46 of file filterlog.cpp.
Member Function Documentation
| void FilterLog::add | ( | QString | logEntry, | |
| ContentType | contentType | |||
| ) |
| void KMail::FilterLog::addSeparator | ( | ) | [inline] |
| void KMail::FilterLog::clear | ( | ) | [inline] |
| void FilterLog::dump | ( | ) |
| const QStringList& KMail::FilterLog::getLogEntries | ( | ) | [inline] |
| FilterLog * FilterLog::instance | ( | ) | [static] |
| bool KMail::FilterLog::isContentTypeEnabled | ( | ContentType | contentType | ) | [inline] |
check a content type for inclusion in the set of logged ones
Definition at line 98 of file filterlog.h.
| bool KMail::FilterLog::isLogging | ( | ) | [inline] |
| bool FilterLog::saveToFile | ( | QString | fileName | ) |
| void KMail::FilterLog::setContentTypeEnabled | ( | ContentType | contentType, | |
| bool | b | |||
| ) | [inline] |
| void KMail::FilterLog::setLogging | ( | bool | active | ) | [inline] |
| void FilterLog::setMaxLogSize | ( | long | size = -1 |
) |
Member Data Documentation
int KMail::FilterLog::mAllowedTypes [protected] |
QStringList KMail::FilterLog::mLogEntries [protected] |
bool KMail::FilterLog::mLogging [protected] |
long KMail::FilterLog::mMaxLogSize [protected] |
max size for kept log items, when reached the last recently added items are discarded -1 means unlimited
Definition at line 147 of file filterlog.h.
The documentation for this class was generated from the following files:

