mailcommon
filterlog.cpp
Go to the documentation of this file.
167 QString timedLog = QLatin1Char( '[' ) + QTime::currentTime().toString() + QLatin1String( "] " );
220 const QString line = QLatin1String( "<p>" ) + entry + QLatin1String( "</p>" ) + QLatin1Char( '\n' );
QString & append(QChar ch)
static QString recode(const QString &plain)
Returns an escaped version of the log which can be used in a HTML document.
Definition: filterlog.cpp:228
QString toString(Qt::DateFormat format) const
int handle() const
void setMaxLogSize(long size=-1)
Sets the maximum size of the log in bytes.
Definition: filterlog.cpp:127
static FilterLog * instance()
Returns the single global instance of the filter log.
Definition: filterlog.cpp:107
QString number(int n, int base)
bool isLogging() const
Returns whether the filter log is currently active.
Definition: filterlog.cpp:116
bool saveToFile(const QString &fileName) const
Saves the log to the file with the given fileName.
Definition: filterlog.cpp:208
void setLogging(bool active)
Sets whether the filter log is currently active.
Definition: filterlog.cpp:121
typedef Iterator
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
void logStateChanged()
This signal is emitted whenever the activity of the filter log has been changed.
QByteArray toLocal8Bit() const
virtual void close()
QTime currentTime()
void logEntryAdded(const QString &entry)
This signal is emitted whenever a new entry has been added to the log.
QString escape(const QString &plain)
int length() const
qint64 write(const char *data, qint64 maxSize)
void setContentTypeEnabled(ContentType type, bool enabled)
Sets whether a given content type will be enabled for logging.
Definition: filterlog.cpp:148
void add(const QString &entry, ContentType type)
Adds the given log entry under the given content type to the log.
Definition: filterlog.cpp:164
bool isContentTypeEnabled(ContentType type) const
Returns whether the given content type is enabled for logging.
Definition: filterlog.cpp:159
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.