]> git.lyx.org Git - lyx.git/blobdiff - src/lyxserver.h
Point fix, earlier forgotten
[lyx.git] / src / lyxserver.h
index 6b69392fe6890018f3e3dd8b99f76fac6a8bd25b..636ef2855641bb5a2be2a3d4021f874440495b09 100644 (file)
@@ -1,22 +1,22 @@
 // -*- C++ -*-
-/* This file is part of
-* ======================================================
-*
-*           LyX, The Document Processor
-*
-*           Copyright 1995 Matthias Ettrich
-*           Copyright 1995-2001 The LyX Team.
-*
-* ====================================================== */
+/**
+ * \file lyxserver.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Lars Gullik Bjønnes
+ * \author Jean-Marc Lasgouttes
+ *
+ * Full author contact details are available in file CREDITS.
+ */
 
 #ifndef LYXSERVER_H
 #define LYXSERVER_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
 #include "LString.h"
+
+#include <boost/signals/trackable.hpp>
+
 class LyXFunc;
 class LyXServer;
 
@@ -29,7 +29,7 @@ class LyXServer;
  This class encapsulates all the dirty communication and thus provides
  a clean string interface.
  */
-class LyXComm {
+class LyXComm : public boost::signals::trackable {
 public:
        /** When we receive a message, we send it to a client.
          This is one of the small things that would have been a lot
@@ -55,8 +55,8 @@ public:
        /// Send message
        void send(string const &);
 
-       /// We receive messages via XForms through this callback
-       static void callback(int fd, void *v);
+       /// asynch ready-to-be-read notification
+       void read_ready();
 
 private:
        /// the filename of the in pipe
@@ -79,7 +79,7 @@ private:
        int startPipe(string const &, bool);
 
        /// finish a pipe
-       void endPipe(int &, string const &);
+       void endPipe(int &, string const &, bool);
 
        /// This is -1 if not open
        int infd;