Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

utils_internet Class Reference

A static-only class for commonly used functions of Internet access. More...

#include <utils_internet.h>

List of all members.


Static Public Methods

bool  download_url_to_local_file (wxString remote_url, wxString local_filename, wxString proxy=wxEmptyString)
  Downloads a url to a local file.

wxString  to_absolute_urls (wxString content_string, wxString tag_parameter, wxString original_url)
  Takes a string, and converts urls inside one tag parameter to absolute URLs.


Detailed Description

A static-only class for commonly used functions of Internet access.

Member Function Documentation

bool utils_internet::download_url_to_local_file wxString    remote_url,
wxString    local_filename,
wxString    proxy = wxEmptyString
[static]
 

Downloads a url to a local file.

Parameters:
remote_url  URL of the file to download.
Local  filename to install to. Can be a temp file.
What  proxy to use/ Syntas is <hostname>:<portnumber>. If wxEmptyString, then ignored--don't use a proxy.
Returns :
TRUE if download was successful.
wxString utils_internet::to_absolute_urls wxString    content_string,
wxString    tag_parameter,
wxString    original_url
[static]
 

Takes a string, and converts urls inside one tag parameter to absolute URLs.

Parameters:
content_string  The input string that needs replacements.
tag_parameter  Parameter to look for, eg either href or src.
original_url  The url of the displayed document needing conversion.