123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- #ifndef QSLOGDESTFUNCTOR_H
- #define QSLOGDESTFUNCTOR_H
- #include "QsLogDest.h"
- #include <QObject>
- namespace QsLogging
- {
- class FunctorDestination : public QObject, public Destination
- {
- Q_OBJECT
- public:
- explicit FunctorDestination(LogFunction f);
- FunctorDestination(QObject *receiver, const char *member);
- virtual void write(const QString &message, Level level);
- virtual bool isValid();
- virtual void rotate() { }
- protected:
-
- Q_SIGNAL void logMessageReady(const QString &message, int level);
- private:
- LogFunction mLogFunction;
- };
- }
- #endif
|