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