KMail::FilterLog Class Reference
KMail Filter Log Collector. More...
#include <filterlog.h>
Inheritance diagram for KMail::FilterLog:

Public Types | |
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 | |
FilterLog * | instance () |
QString & | recode (QString s) |
Protected Member Functions | |
FilterLog () | |
void | checkLogSize () |
Protected Attributes | |
QStringList | mLogEntries |
bool | mLogging |
long | mMaxLogSize |
long | mCurrentLogSize |
int | mAllowedTypes |
Detailed Description
KMail Filter Log Collector.
- Author:
- Andreas Gungl <a.gungl@gmx.de>
Definition at line 52 of file filterlog.h.
Member Enumeration Documentation
|
log data types
Definition at line 61 of file filterlog.h. |
Constructor & Destructor Documentation
|
destructor
Definition at line 60 of file filterlog.cpp. |
|
Non-public constructor needed by the singleton implementation.
Definition at line 46 of file filterlog.cpp. References mAllowedTypes, mLogging, and mMaxLogSize. Referenced by instance(). |
Member Function Documentation
|
access to the singleton instance
Definition at line 64 of file filterlog.cpp. References FilterLog(). Referenced by KMail::FilterLogDialog::FilterLogDialog(), KMSearchRuleNumerical::matches(), and KMSearchRuleString::matches(). |
|
check the logging state
Definition at line 72 of file filterlog.h. References mLogging. Referenced by add(), KMSearchRuleNumerical::matches(), and KMSearchRuleString::matches(). |
|
set the logging state
Definition at line 74 of file filterlog.h. References mLogging, and setLogging(). Referenced by setLogging(). |
|
control the size of the log
Definition at line 88 of file filterlog.cpp. References mMaxLogSize. |
|
add/remove a content type to the set of logged ones
Definition at line 87 of file filterlog.h. References mAllowedTypes, and setContentTypeEnabled(). Referenced by setContentTypeEnabled(). |
|
check a content type for inclusion in the set of logged ones
Definition at line 97 of file filterlog.h. References isContentTypeEnabled(), and mAllowedTypes. Referenced by isContentTypeEnabled(). |
|
add a log entry
Definition at line 71 of file filterlog.cpp. References isLogging(), mAllowedTypes, and mLogEntries. Referenced by KMSearchRuleNumerical::matches(), and KMSearchRuleString::matches(). |
|
add a separating line in the log
Definition at line 106 of file filterlog.h. |
|
discard collected log data
Definition at line 108 of file filterlog.h. References mLogEntries. |
|
get access to the log entries
Definition at line 117 of file filterlog.h. References mLogEntries. Referenced by KMail::FilterLogDialog::FilterLogDialog(). |
|
dump the log - for testing purposes
Definition at line 101 of file filterlog.cpp. References mLogEntries. |
|
save the log to a file - returns true if okay
Definition at line 143 of file filterlog.cpp. References mLogEntries. |
Member Data Documentation
|
The list contains the single log pieces.
Definition at line 138 of file filterlog.h. Referenced by add(), clear(), dump(), getLogEntries(), and saveToFile(). |
|
the log status
Definition at line 141 of file filterlog.h. Referenced by FilterLog(), isLogging(), and setLogging(). |
|
max size for kept log items, when reached the last recently added items are discarded -1 means unlimited
Definition at line 146 of file filterlog.h. Referenced by FilterLog(), and setMaxLogSize(). |
|
types currently allowed to be legged
Definition at line 150 of file filterlog.h. Referenced by add(), FilterLog(), isContentTypeEnabled(), and setContentTypeEnabled(). |
The documentation for this class was generated from the following files: