Extract common code out into kdm_for_screen()
[dcpomatic.git] / src / lib / json_server.h
index 623067558c938216be282a1fe96889f08877feae..f36e621f3f6fdbc23ee27d811c5213b0408b422f 100644 (file)
@@ -1,31 +1,32 @@
 /*
     Copyright (C) 2014 Carl Hetherington <cth@carlh.net>
 
-    This program is free software; you can redistribute it and/or modify
+    This file is part of DCP-o-matic.
+
+    DCP-o-matic is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
     the Free Software Foundation; either version 2 of the License, or
     (at your option) any later version.
 
-    This program is distributed in the hope that it will be useful,
+    DCP-o-matic is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     GNU General Public License for more details.
 
     You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+    along with DCP-o-matic.  If not, see <http://www.gnu.org/licenses/>.
 
 */
 
+#include <boost/asio.hpp>
+
 class JSONServer
 {
 public:
-       JSONServer (int port);
+       explicit JSONServer (int port);
 
 private:
        void run (int port);
        void handle (boost::shared_ptr<boost::asio::ip::tcp::socket> socket);
        void request (std::string url, boost::shared_ptr<boost::asio::ip::tcp::socket> socket);
 };
-
-