Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
logeventsource.h
Go to the documentation of this file.
1#pragma once
2
5
6#include <sonde/eventsource.h>
7
8namespace Sonde {
9
11
26class SONDE_CORE_EXPORT LogEventSource : public EventSource
27{
28 Q_OBJECT
29public:
31 explicit LogEventSource(QObject *parent = nullptr);
33 ~LogEventSource() override;
34
36 bool isActive() const;
37
52 static void captureCategory(const QByteArray &category, QtMsgType lowest = QtDebugMsg);
53
54private:
56};
57
58} // namespace Sonde
EventSource(QString name, QString description={ }, QObject *parent=nullptr)
Creates a source called name (used in filters and resource URIs), described by description in the eve...
Definition eventsource.cpp:18
LogEventSource's private part.
Definition logeventsource.cpp:266
bool isActive() const
Whether this instance installed the message handler.
Definition logeventsource.cpp:295
PrivatePtr< LogEventSourcePrivate > d
Implementation.
Definition logeventsource.h:55
static void captureCategory(const QByteArray &category, QtMsgType lowest=QtDebugMsg)
Turns on category, at lowest and above, for Sonde's log capture only.
Definition logeventsource.cpp:322
LogEventSource(QObject *parent=nullptr)
Installs the message handler unless another instance already did.
Definition logeventsource.cpp:271
Owns a class's private part, like std::unique_ptr, but a const owner only gets a const pointer,...
Definition privateptr.h:20
Sonde::EventSource, the base class of event streams.
Embeddable Model Context Protocol server for Qt applications.
Definition dispatch.cpp:10