]> git.lyx.org Git - lyx.git/blobdiff - src/ServerSocket.h
Provide proper fallback if a bibliography processor is not found
[lyx.git] / src / ServerSocket.h
index 0678d6dbfd06b35df1088f1ae4adf335ab4a9670..c66658042ff38ca4d4da9dfda9d67cb9489567c0 100644 (file)
@@ -4,9 +4,9 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
  * \author Jean-Marc Lasgouttes
- * \author João Luis M. Assirati
+ * \author João Luis M. Assirati
  *
  * Full author contact details are available in file CREDITS.
  */
 #define LYXSERVERSOCKET_H
 
 #include "support/FileName.h"
-#include "support/socktools.h"
-#include "LyXFunc.h"
-
-#include <boost/shared_ptr.hpp>
 
 #include <string>
 #include <map>
+#include <memory>
 
 
 namespace lyx {
@@ -41,7 +38,7 @@ class LyXDataSocket;
 class ServerSocket {
 public:
        ///
-       ServerSocket(LyXFunc *, support::FileName const &);
+       ServerSocket(support::FileName const &);
        ///
        ~ServerSocket();
        /// Address of the local socket
@@ -53,8 +50,6 @@ public:
 private:
        ///
        void writeln(std::string const &);
-       ///
-       LyXFunc * func;
        /// File descriptor for the server socket
        int fd_;
        /// Stores the socket filename
@@ -64,7 +59,7 @@ private:
                MAX_CLIENTS = 10
        };
        /// All connections
-       std::map<int, boost::shared_ptr<LyXDataSocket> > clients;
+       std::map<int, std::shared_ptr<LyXDataSocket>> clients;
 };