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