]> git.lyx.org Git - lyx.git/blobdiff - src/lyxserver.h
add missing writeNormal() methods to some insets
[lyx.git] / src / lyxserver.h
index 9390f5e23d012e17a03c3b31e1a183222b0f3ce3..4311aba232cb846cbf062c46b2adfe6e7d02ff0e 100644 (file)
@@ -5,7 +5,7 @@
 *           LyX, The Document Processor
 *        
 *           Copyright 1995 Matthias Ettrich
-*           Copyright 1995-2000 The LyX Team.
+*           Copyright 1995-2001 The LyX Team.
 *
 * ====================================================== */
 
@@ -49,6 +49,9 @@ public:
                closeConnection();
        }
 
+       /// clean up in emergency
+       void emergencyCleanup();
        /// Send message
        void send(string const &);
 
@@ -62,6 +65,12 @@ private:
        /// Close pipes
        void closeConnection();
 
+       /// start a pipe
+       int startPipe(string const &);
+       /// finish a pipe
+       void endPipe(int, string const &);
        /// This is -1 if not open
        int infd;
 
@@ -103,6 +112,12 @@ public:
        ~LyXServer();
        ///
        void notifyClient(string const &);
+       
+       /// whilst crashing etc.
+       void emergencyCleanup() {
+               pipes.emergencyCleanup();
+       }
 private:
        ///
        static void callback(LyXServer *, string const & msg);