Sonde
v1.1.0
Embeddable Model Context Protocol server for Qt applications
Toggle main menu visibility
Loading...
Searching...
No Matches
logeventsource.h
Go to the documentation of this file.
1
#pragma once
2
5
6
#include <
sonde/eventsource.h
>
7
8
namespace
Sonde
{
9
10
class
LogEventSourcePrivate
;
11
26
class
SONDE_CORE_EXPORT
LogEventSource
:
public
EventSource
27
{
28
Q_OBJECT
29
public
:
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
54
private
:
55
PrivatePtr<LogEventSourcePrivate>
d
;
56
};
57
58
}
// namespace Sonde
Sonde::EventSource::EventSource
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
Sonde::LogEventSourcePrivate
LogEventSource's private part.
Definition
logeventsource.cpp:266
Sonde::LogEventSource::isActive
bool isActive() const
Whether this instance installed the message handler.
Definition
logeventsource.cpp:295
Sonde::LogEventSource::d
PrivatePtr< LogEventSourcePrivate > d
Implementation.
Definition
logeventsource.h:55
Sonde::LogEventSource::captureCategory
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
Sonde::LogEventSource::LogEventSource
LogEventSource(QObject *parent=nullptr)
Installs the message handler unless another instance already did.
Definition
logeventsource.cpp:271
Sonde::PrivatePtr
Owns a class's private part, like std::unique_ptr, but a const owner only gets a const pointer,...
Definition
privateptr.h:20
eventsource.h
Sonde::EventSource, the base class of event streams.
Sonde
Embeddable Model Context Protocol server for Qt applications.
Definition
dispatch.cpp:10
src
core
sonde
logeventsource.h
Generated by
1.18.0