]> git.lyx.org Git - lyx.git/blobdiff - development/lyxserver/server_monitor.h
Fix broken automake
[lyx.git] / development / lyxserver / server_monitor.h
index ade3614f89a48cb7b747ce13272466477c8d8036..32d035e44816d52e5c23e2a0358a759063ee98c6 100644 (file)
@@ -58,6 +58,8 @@ public Q_SLOTS:
        void openPipes();
        void closePipes();
        void submitCommand();
+       void showInfo(QString const &);
+       void showNotice(QString const &);
 
 private:
        void createCmdsGroupBox();
@@ -87,4 +89,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