|
glibmm
2.36.0
|
#include <glibmm/main.h>
Public Member Functions | |
| sigc::connection | connect (const sigc::slot< bool, IOCondition >& slot, int fd, IOCondition condition, int priority=PRIORITY_DEFAULT) |
| Connects an I/O handler that watches a file descriptor. More... | |
| sigc::connection | connect (const sigc::slot< bool, IOCondition >& slot, const Glib::RefPtr< IOChannel >& channel, IOCondition condition, int priority=PRIORITY_DEFAULT) |
| Connects an I/O handler that watches an I/O channel. More... | |
| sigc::connection Glib::SignalIO::connect | ( | const sigc::slot< bool, IOCondition >& | slot, |
| int | fd, | ||
| IOCondition | condition, | ||
| int | priority = PRIORITY_DEFAULT |
||
| ) |
Connects an I/O handler that watches a file descriptor.
is equivalent to:
This method is not thread-safe. You should call it, or manipulate the returned sigc::connection object, only from the thread where the SignalIO object's MainContext runs.
| slot | A slot to call when polling fd results in an event that matches condition. The event will be passed as a parameter to slot. If io_handler() returns false the handler is disconnected. |
| fd | The file descriptor (or a HANDLE on Win32 systems) to watch. |
| condition | The conditions to watch for. |
| priority | The priority of the new event source. |
| sigc::connection Glib::SignalIO::connect | ( | const sigc::slot< bool, IOCondition >& | slot, |
| const Glib::RefPtr< IOChannel >& | channel, | ||
| IOCondition | condition, | ||
| int | priority = PRIORITY_DEFAULT |
||
| ) |
Connects an I/O handler that watches an I/O channel.
is equivalent to:
This method is not thread-safe. You should call it, or manipulate the returned sigc::connection object, only from the thread where the SignalIO object's MainContext runs.
| slot | A slot to call when polling channel results in an event that matches condition. The event will be passed as a parameter to slot. If io_handler() returns false the handler is disconnected. |
| channel | The IOChannel object to watch. |
| condition | The conditions to watch for. |
| priority | The priority of the new event source. |
1.8.3.1