242
260
sigc::connection connect(const sigc::slot<bool,IOCondition>& slot, int fd,
243
261
IOCondition condition, int priority = PRIORITY_DEFAULT);
247
266
* Glib::signal_io().connect(sigc::ptr_fun(&io_handler), channel, Glib::IO_IN | Glib::IO_HUP);
251
271
* const Glib::RefPtr<Glib::IOSource> io_source = Glib::IOSource::create(channel, Glib::IO_IN | Glib::IO_HUP);
252
272
* io_source->connect(sigc::ptr_fun(&io_handler));
253
273
* io_source->attach(Glib::MainContext::get_default());
255
275
* @param slot A slot to call when polling @a channel results in an event that matches @a condition.
256
276
* The event will be passed as a parameter to @a slot.
258
278
* @param channel The IOChannel object to watch.
259
279
* @param condition The conditions to watch for.
260
280
* @param priority The priority of the new event source.