]> git.lyx.org Git - lyx.git/blobdiff - src/ServerSocket.h
prepare Qt 5.6 builds
[lyx.git] / src / ServerSocket.h
index 1899e8b9ae82de30d2792252947b34a7b8982b10..7364250e17b7174dfb791490706d2f48c7cfaaac 100644 (file)
@@ -15,9 +15,8 @@
 #define LYXSERVERSOCKET_H
 
 #include "support/FileName.h"
-#include "support/socktools.h"
 
-#include <boost/shared_ptr.hpp>
+#include "support/shared_ptr.h"
 
 #include <string>
 #include <map>
@@ -26,7 +25,6 @@
 namespace lyx {
 
 class LyXDataSocket;
-class LyXFunc;
 
 
 /** Sockets can be in two states: listening and connected.
@@ -41,7 +39,7 @@ class LyXFunc;
 class ServerSocket {
 public:
        ///
-       ServerSocket(LyXFunc *, support::FileName const &);
+       ServerSocket(support::FileName const &);
        ///
        ~ServerSocket();
        /// Address of the local socket
@@ -53,8 +51,6 @@ public:
 private:
        ///
        void writeln(std::string const &);
-       ///
-       LyXFunc * func;
        /// File descriptor for the server socket
        int fd_;
        /// Stores the socket filename
@@ -64,7 +60,7 @@ private:
                MAX_CLIENTS = 10
        };
        /// All connections
-       std::map<int, boost::shared_ptr<LyXDataSocket> > clients;
+       std::map<int, shared_ptr<LyXDataSocket> > clients;
 };