+
+class ReadPipe : public QThread
+{
+ Q_OBJECT
+
+public:
+ ReadPipe(LyXServerMonitor * monitor) : lyxmonitor(monitor) {}
+ ///
+ void run() { lyxmonitor->readPipe(); }
+ ///
+ void emitInfo(QString const & msg) { emit info(msg); }
+ ///
+ void emitNotice(QString const & msg) { emit notice(msg); }
+ ///
+ void emitClosing() { emit closing(); }
+
+signals:
+ void info(QString const &);
+ void notice(QString const &);
+ void closing();
+
+private:
+ LyXServerMonitor * lyxmonitor;
+};
+