]> git.lyx.org Git - lyx.git/blobdiff - src/lyxsocket.h
Add margin to paragraph dialog.
[lyx.git] / src / lyxsocket.h
index d958f3a297cc265dd13712f6da156ba47ef183e0..fab8c00bbb22eff7d6af9a70dfed3814943d2b95 100644 (file)
@@ -14,6 +14,7 @@
 #ifndef LYXSOCKET_H
 #define LYXSOCKET_H
 
+#include "support/filename.h"
 #include "support/socktools.h"
 #include "lyxfunc.h"
 
@@ -22,6 +23,9 @@
 #include <string>
 #include <map>
 
+
+namespace lyx {
+
 class LyXServerSocket;
 class LyXDataSocket;
 
@@ -38,11 +42,11 @@ class LyXDataSocket;
 class LyXServerSocket {
 public:
        ///
-       LyXServerSocket(LyXFunc *, std::string const &);
+       LyXServerSocket(LyXFunc *, support::FileName const &);
        ///
        ~LyXServerSocket();
        /// Address of the local socket
-       std::string const address() const;
+       std::string const address() const;
        /// To be called when there is activity in the server socket
        void serverCallback();
        /// To be called when there is activity in the data socket
@@ -55,7 +59,7 @@ private:
        /// File descriptor for the server socket
        int fd_;
        /// Stores the socket filename
-       std::string address_;
+       support::FileName address_;
        /// Maximum number of simultaneous clients
        enum {
                MAX_CLIENTS = 10
@@ -89,4 +93,10 @@ private:
        std::string buffer_;
 };
 
+/// Implementation is in lyx_main.C
+extern LyXServerSocket & theLyXServerSocket();
+
+
+} // namespace lyx
+
 #endif // LYXSOCKET_H