|
libcamera
v0.1.0
Supporting cameras in Linux since 2019
|
Go to the documentation of this file.
10 #include <libcamera/base/private.h>
32 int fd()
const {
return fd_; }
EventNotifier(int fd, Type type, Object *parent=nullptr)
Construct an event notifier with a file descriptor and event type.
Definition: event_notifier.cpp:66
Base object to support automatic signal disconnection.
Definition: object.h:25
void setEnabled(bool enable)
Enable or disable the notifier.
Definition: event_notifier.cpp:105
Type
Definition: event_notifier.h:22
Object * parent() const
Retrieve the object's parent.
Definition: object.h:47
bool enabled() const
Retrieve the notifier state.
Definition: event_notifier.h:34
Notify of activity on a file descriptor.
Definition: event_notifier.h:20
Top-level libcamera namespace.
Definition: backtrace.h:17
void message(Message *msg) override
Message handler for the object.
Definition: event_notifier.cpp:128
@ Read
Definition: event_notifier.h:23
Signal & slot implementation.
@ Exception
Definition: event_notifier.h:25
Generic signal and slot communication mechanism.
Definition: signal.h:39
int fd() const
Retrieve the file descriptor being monitored.
Definition: event_notifier.h:32
@ Write
Definition: event_notifier.h:24
Signal activated
Signal emitted when the event occurs.
Definition: event_notifier.h:37
Type type() const
Retrieve the type of the event being monitored.
Definition: event_notifier.h:31
Base object to support automatic signal disconnection.
A message that can be posted to a Thread.
Definition: message.h:24