KMail::FilterLog Class Reference
KMail Filter Log Collector. More...
#include <filterlog.h>
Inherits QObject.
Public Types
- enum ContentType {
meta = 1, patternDesc = 2, ruleResult = 4, patternResult = 8,
appliedAction = 16
}
Signals
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
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>
Member Enumeration Documentation
|
log data types
|
Constructor & Destructor Documentation
|
destructor
|
|
Non-public constructor needed by the singleton implementation.
|
Member Function Documentation
|
access to the singleton instance
|
|
check the logging state
|
|
set the logging state
|
|
control the size of the log
|
|
add/remove a content type to the set of logged ones
|
|
check a content type for inclusion in the set of logged ones
|
|
add a log entry
|
|
add a separating line in the log
|
|
discard collected log data
|
|
get access to the log entries
|
|
dump the log - for testing purposes
|
|
save the log to a file - returns true if okay
|
Member Data Documentation
|
The list contains the single log pieces.
|
|
the log status
|
|
max size for kept log items, when reached the last recently added items are discarded -1 means unlimited
|
|
types currently allowed to be legged
|
The documentation for this class was generated from the following files:
- filterlog.h
- filterlog.cpp