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;
162 #endif // KMAIL_FILTERLOG_H
TQStringList mLogEntries
The list contains the single log pieces.
void clear()
discard collected log data
bool isLogging()
check the logging state
virtual ~FilterLog()
destructor
static FilterLog * instance()
access to the singleton instance
void setLogging(bool active)
set the logging state
void addSeparator()
add a separating line in the log
const TQStringList & getLogEntries()
get access to the log entries
void setMaxLogSize(long size=-1)
control the size of the log
void setContentTypeEnabled(ContentType contentType, bool b)
add/remove a content type to the set of logged ones
bool isContentTypeEnabled(ContentType contentType)
check a content type for inclusion in the set of logged ones
int mAllowedTypes
types currently allowed to be legged
void dump()
dump the log - for testing purposes
ContentType
log data types
long mMaxLogSize
max size for kept log items, when reached the last recently added items are discarded -1 means unlimi...
KMail Filter Log Collector.
void add(TQString logEntry, ContentType contentType)
add a log entry
bool saveToFile(TQString fileName)
save the log to a file - returns true if okay
bool mLogging
the log status
FilterLog()
Non-public constructor needed by the singleton implementation.