4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
8 * \author João Luis M. Assirati
10 * Full author contact details are available in file CREDITS.
19 #include <boost/function.hpp>
23 * io_callback - a simple wrapper for asynchronous socket notification
25 * This is used by the lyxsocket to notice the socket is ready to be
29 class io_callback : public sigc::trackable {
31 /// connect a connection notification from the LyXServerSocket
32 io_callback(int fd, boost::function<void()> func);
34 bool data_received(Glib::IOCondition);
36 sigc::connection conn_;
37 /// The callback function
38 boost::function<void()> func_;
41 #endif // IO_CALLBACK_H