Merge installer branch.
[dcpomatic.git] / src / lib / server_finder.h
index f964d4e1abf5df854c69bc908380929b05c1daed..202bee8f920d9610bd82c50b6951ea701199ed25 100644 (file)
@@ -20,7 +20,7 @@
 #include <boost/signals2.hpp>
 #include "server.h"
 
-class ServerFinder
+class ServerFinder : public ExceptionStore
 {
 public:
        void connect (boost::function<void (ServerDescription)>);
@@ -37,6 +37,8 @@ private:
        void broadcast_thread ();
        void listen_thread ();
 
+       bool server_found (std::string) const;
+
        boost::signals2::signal<void (ServerDescription)> ServerFound;
 
        bool _disabled;
@@ -47,7 +49,7 @@ private:
        boost::thread* _listen_thread;
 
        std::list<ServerDescription> _servers;
-       boost::mutex _mutex;
+       mutable boost::mutex _mutex;
 
        static ServerFinder* _instance;
 };