Obey DCPOMATIC_LINUX_SHARE_PREFIX in non-debug as well as debug mode.
[dcpomatic.git] / src / lib / server_finder.h
index c0f1feb66e1d329167e55007ec8bdf4f6ac09521..dc62f998deb0d79f5e9926753fbd5c81c95f7559 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2013 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2013-2015 Carl Hetherington <cth@carlh.net>
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
 */
 
 #include "server.h"
+#include "signaller.h"
 #include <boost/signals2.hpp>
 
-class ServerFinder : public ExceptionStore
+class ServerFinder : public Signaller, public ExceptionStore
 {
 public:
-       void connect (boost::function<void (ServerDescription)>);
+       boost::signals2::connection connect (boost::function<void (ServerDescription)>);
 
        static ServerFinder* instance ();
        static void drop ();
@@ -32,6 +33,10 @@ public:
                _disabled = true;
        }
 
+       bool disabled () const {
+               return _disabled;
+       }
+
 private:
        ServerFinder ();
        ~ServerFinder ();