diff options
| author | Christoph Berg <myon@debian.org> | 2020-11-16 21:54:50 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2020-11-16 21:54:50 +0100 |
| commit | 77922fa33547ce24535f2e514c9a112dcb496f18 (patch) | |
| tree | 9f82b0ee01281b315f43a4c60d678927b4c6ca59 /WSJTXLogging.hpp | |
| parent | 7aa3c56b01768ba7d38fccedc17b30a4046b3fbb (diff) | |
New upstream version 2.3.0~rc2+repackupstream/2.3.0_rc2+repack
Diffstat (limited to 'WSJTXLogging.hpp')
| -rw-r--r-- | WSJTXLogging.hpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/WSJTXLogging.hpp b/WSJTXLogging.hpp new file mode 100644 index 00000000..d36e9afd --- /dev/null +++ b/WSJTXLogging.hpp @@ -0,0 +1,26 @@ +#ifndef WSJTX_LOGGING_HPP__ +#define WSJTX_LOGGING_HPP__ + +#include <QtGlobal> + +class QString; + +// +// Class WSJTXLogging - wraps application specific logging +// +class WSJTXLogging final +{ +public: + explicit WSJTXLogging (); + ~WSJTXLogging (); + + // + // Install this as the Qt message handler (qInstallMessageHandler) + // to integrate Qt messages. This handler can be installed at any + // time, it does not rely on an instance of WSJTXLogging existing, + // so logging occurring before the logging sinks, filters, and + // formatters, etc, are established can take place. + static void qt_log_handler (QtMsgType type, QMessageLogContext const& context, QString const&); +}; + +#endif |
