]> git.lyx.org Git - lyx.git/blobdiff - development/lyxserver/server_monitor.h
ctests: ignore Japanese dvi3 systemF tests
[lyx.git] / development / lyxserver / server_monitor.h
index ade3614f89a48cb7b747ce13272466477c8d8036..5f8c628f98d16a17862c38d80f938ef0496bfdb2 100644 (file)
@@ -13,6 +13,7 @@
 
 #include <errno.h>
 #include <fcntl.h>
+#include <unistd.h>
 
 #include <QDialog>
 #include <QFile>
@@ -58,6 +59,8 @@ public Q_SLOTS:
        void openPipes();
        void closePipes();
        void submitCommand();
+       void showInfo(QString const &);
+       void showNotice(QString const &);
 
 private:
        void createCmdsGroupBox();
@@ -87,4 +90,29 @@ private:
        ReadPipe * pipethread;
 };
 
+
+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;
+};
+
 #endif