X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Finternet.h;h=5f9a25e3b2ab166adf7c81e8f0e330cb25bc7fda;hp=d7427fe48351e04cc736f9467915f9a97858197e;hb=5eb8b5c3a1566aef638e9d9df03b88d320735092;hpb=854f2e5bbb7ffb9758b823af87034033033f3cb8 diff --git a/src/lib/internet.h b/src/lib/internet.h index d7427fe48..5f9a25e3b 100644 --- a/src/lib/internet.h +++ b/src/lib/internet.h @@ -1,19 +1,20 @@ /* - Copyright (C) 2014 Carl Hetherington + Copyright (C) 2014-2019 Carl Hetherington - 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 . */ @@ -21,5 +22,9 @@ #include #include -boost::optional get_from_zip_url (std::string url, std::string file, boost::function load); -std::list ftp_ls (std::string dir); +class ScopedTemporary; + +boost::optional get_from_url (std::string url, bool pasv, bool skip_pasv_ip, ScopedTemporary& temp); +boost::optional get_from_url (std::string url, bool pasv, bool skip_pasv_ip, boost::function load); +boost::optional get_from_zip_url (std::string url, std::string file, bool pasv, bool skip_pasv_ip, boost::function load); +std::list ls_url (std::string url);