7 #ifndef __LIBCAMERA_EVENT_NOTIFIER_H__
8 #define __LIBCAMERA_EVENT_NOTIFIER_H__
30 int fd()
const {
return fd_; }
Notify of activity on a file descriptor.
Definition: event_notifier.h:18
bool enabled() const
Retrieve the notifier state.
Definition: event_notifier.h:32
int fd() const
Retrieve the file descriptor being monitored.
Definition: event_notifier.h:30
void setEnabled(bool enable)
Enable or disable the notifier.
Definition: event_notifier.cpp:105
void message(Message *msg) override
Message handler for the object.
Definition: event_notifier.cpp:128
EventNotifier(int fd, Type type, Object *parent=nullptr)
Construct an event notifier with a file descriptor and event type.
Definition: event_notifier.cpp:66
Type type() const
Retrieve the type of the event being monitored.
Definition: event_notifier.h:29
Type
Definition: event_notifier.h:20
@ Read
Definition: event_notifier.h:21
@ Write
Definition: event_notifier.h:22
@ Exception
Definition: event_notifier.h:23
Signal< EventNotifier * > activated
Signal emitted when the event occurs.
Definition: event_notifier.h:35
A message that can be posted to a Thread.
Definition: message.h:22
Base object to support automatic signal disconnection.
Definition: object.h:25
Object * parent() const
Retrieve the object's parent.
Definition: object.h:45
Generic signal and slot communication mechanism.
Definition: signal.h:39
Base object to support automatic signal disconnection.
Signal & slot implementation.