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 | |
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
|
log data types
Definition at line 62 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. |
Member Function Documentation
|
add a log entry
Definition at line 71 of file filterlog.cpp. |
|
add a separating line in the log
Definition at line 107 of file filterlog.h. |
|
discard collected log data
Definition at line 109 of file filterlog.h. |
|
dump the log - for testing purposes
Definition at line 101 of file filterlog.cpp. |
|
get access to the log entries
Definition at line 118 of file filterlog.h. |
|
access to the singleton instance
Definition at line 64 of file filterlog.cpp. |
|
check a content type for inclusion in the set of logged ones
Definition at line 98 of file filterlog.h. |
|
check the logging state
Definition at line 73 of file filterlog.h. |
|
save the log to a file - returns true if okay
Definition at line 143 of file filterlog.cpp. |
|
add/remove a content type to the set of logged ones
Definition at line 88 of file filterlog.h. |
|
set the logging state
Definition at line 75 of file filterlog.h. |
|
control the size of the log
Definition at line 88 of file filterlog.cpp. |
Member Data Documentation
|
types currently allowed to be legged
Definition at line 151 of file filterlog.h. |
|
The list contains the single log pieces.
Definition at line 139 of file filterlog.h. |
|
the log status
Definition at line 142 of file filterlog.h. |
|
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: