29 #ifndef KMAIL_FILTERLOG_H
30 #define KMAIL_FILTERLOG_H
33 #include <tqstringlist.h>
34 #include <tqstylesheet.h>
79 emit logStateChanged();
95 emit logStateChanged();
128 static TQString recode(
const TQString & plain ) {
return TQStyleSheet::escape(plain); };
131 void logEntryAdded( TQString );
133 void logStateChanged();
149 long mCurrentLogSize;
KMail Filter Log Collector.
bool mLogging
the log status
const TQStringList & getLogEntries()
get access to the log entries
bool isLogging()
check the logging state
TQStringList mLogEntries
The list contains the single log pieces.
void addSeparator()
add a separating line in the log
void setMaxLogSize(long size=-1)
control the size of the log
void clear()
discard collected log data
void setLogging(bool active)
set the logging state
void setContentTypeEnabled(ContentType contentType, bool b)
add/remove a content type to the set of logged ones
FilterLog()
Non-public constructor needed by the singleton implementation.
bool saveToFile(TQString fileName)
save the log to a file - returns true if okay
void add(TQString logEntry, ContentType contentType)
add a log entry
bool isContentTypeEnabled(ContentType contentType)
check a content type for inclusion in the set of logged ones
static FilterLog * instance()
access to the singleton instance
long mMaxLogSize
max size for kept log items, when reached the last recently added items are discarded -1 means unlimi...
void dump()
dump the log - for testing purposes
virtual ~FilterLog()
destructor
int mAllowedTypes
types currently allowed to be legged
ContentType
log data types