]> git.lyx.org Git - lyx.git/blobdiff - src/lyxserver.h
A better fix for bug 675:
[lyx.git] / src / lyxserver.h
index eb36be249476f93441cf34ca79d4551297390dc9..18623578d81294a1bb72d0cfbdfcf0cadff38dc4 100644 (file)
@@ -15,6 +15,9 @@
 
 #include <boost/signals/trackable.hpp>
 
+
+namespace lyx {
+
 class LyXFunc;
 class LyXServer;
 
@@ -58,14 +61,10 @@ public:
 
 private:
        /// the filename of the in pipe
-       std::string const inPipeName() {
-               return pipename + ".in";
-       }
+       std::string const inPipeName() const;
 
        /// the filename of the out pipe
-       std::string const outPipeName() {
-               return pipename + ".out";
-       }
+       std::string const outPipeName() const;
 
        /// Open pipes
        void openConnection();
@@ -144,6 +143,12 @@ private:
        LyXComm pipes;
 };
 
+/// Implementation is in lyx_main.C
+extern LyXServer & theLyXServer();
+
+
+} // namespace lyx
+
 #endif /* _LYXSERVER_H_ */
 
 /* === End of File: lyxserver.h ========================================== */