/* * Copyright (c) 2000, 2001, Red Hat, Inc. * * 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 * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * A copy of the GNU General Public License can be found at * http://www.gnu.org/ * * Written by DJ Delorie * */ /* Download files from the Internet. These pop up a progress dialog; don't forget to dismiss it when you're done downloading for a while */ extern int total_download_bytes; extern int total_download_bytes_sofar; class io_stream; class String; io_stream *get_url_to_membuf (String const &, HWND owner); void getUrlToStream (String const &, HWND owner, io_stream *); String get_url_to_string (String const&, HWND owner); int get_url_to_file (String const &_url, String const &_filename, int expected_size, HWND owner, BOOL allow_ftp_auth = FALSE); void dismiss_url_status_dialog ();