X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Finternet.h;h=101eaeae969bf3ae50d1cf4af3a5c75fd18c89d0;hb=39a7a8be0bdb499423f96aa23ed3bffdc7d6c912;hp=f46abc367de128780a87c390142e73587d4532a1;hpb=ee1d68bbbfe89b3aa131d912747e5da4a746fdce;p=dcpomatic.git diff --git a/src/lib/internet.h b/src/lib/internet.h index f46abc367..101eaeae9 100644 --- a/src/lib/internet.h +++ b/src/lib/internet.h @@ -1,19 +1,20 @@ /* Copyright (C) 2014 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,8 @@ #include #include -boost::optional get_from_zip_url (std::string url, std::string file, boost::function load); -std::list ftp_ls (std::string dir, bool pasv = true); +class ScopedTemporary; + +boost::optional get_from_url (std::string url, bool pasv, ScopedTemporary& temp); +boost::optional get_from_url (std::string url, bool pasv, boost::function load); +boost::optional get_from_zip_url (std::string url, std::string file, bool pasv, boost::function load);