mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-28 04:17:43 +00:00
814b819451
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5447 a592a061-630c-0410-9148-cb99ea01b6c8
34 lines
634 B
C
34 lines
634 B
C
/**
|
|
* \file io_callback.C
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author unknown
|
|
* \author John Levon
|
|
*
|
|
* Full author contact details are available in file CREDITS
|
|
*/
|
|
|
|
#include <config.h>
|
|
|
|
#ifdef __GNUG__
|
|
#pragma implementation
|
|
#endif
|
|
|
|
#include "lyxserver.h"
|
|
#include "io_callback.h"
|
|
|
|
|
|
io_callback::io_callback(int fd, LyXComm * comm)
|
|
: comm_(comm)
|
|
{
|
|
sn_.reset(new QSocketNotifier(fd, QSocketNotifier::Read, this));
|
|
connect(sn_.get(), SIGNAL(activated(int)), this, SLOT(data_received()));
|
|
}
|
|
|
|
|
|
void io_callback::data_received()
|
|
{
|
|
comm_->read_ready();
|
|
}
|