-// -*- C++ -*-
-/**
- * \file io_callback.h
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author unknown
- * \author John Levon
- * \author João Luis M. Assirati
- *
- * Full author contact details are available in file CREDITS.
- */
-
-#ifndef SOCKET_CALLBACK_H
-#define SOCKET_CALLBACK_H
-
-#include <QObject>
-#include <QSocketNotifier>
-
-#include <boost/function.hpp>
-
-
-namespace lyx {
-
-/**
- * socket_callback - a simple wrapper for asynchronous socket notification
- *
- * This is used by the lyxsocket to notice the socket is ready to be
- * connected/read.
- *
- * FIXME: this code apparently will not work on Windows.
- */
-
-class SocketCallback : public QObject
-{
- Q_OBJECT
-
-public:
- /// connect a connection notification from the LyXServerSocket
- SocketCallback(QObject * parent, int fd, boost::function<void()> func);
-
-public Q_SLOTS:
- void dataReceived();
-
-private:
- /// Our notifier
- QSocketNotifier * sn_;
- /// The callback function
- boost::function<void()> func_;
-};
-
-
-} // namespace lyx
-
-#endif // SOCKET_CALLBACK_H