Spm::Plugin::DownloadInterface Class Reference

base class for download plugin More...

#include <downloadInterface.h>

Inheritance diagram for Spm::Plugin::DownloadInterface:

Spm::Plugin::Interface List of all members.

Public Member Functions

virtual ~DownloadInterface ()
virtual void download (const std::string &uri, const boost::filesystem::path &to)=0
 download a file to a specific location
virtual bool handle (const std::string &uri)=0
 Check if the Plugin can handle an URI uri The URI to check.
double getFractionDone ()

Protected Member Functions

 DownloadInterface ()
 DownloadInterface (const Util::urlDetails &u)

Protected Attributes

double fractionDone
Util::urlDetails url

Detailed Description

base class for download plugin


Constructor & Destructor Documentation

Spm::Plugin::DownloadInterface::DownloadInterface  )  [inline, protected]
 

Spm::Plugin::DownloadInterface::DownloadInterface const Util::urlDetails u  )  [inline, protected]
 

virtual Spm::Plugin::DownloadInterface::~DownloadInterface  )  [inline, virtual]
 


Member Function Documentation

virtual void Spm::Plugin::DownloadInterface::download const std::string &  uri,
const boost::filesystem::path &  to
[pure virtual]
 

download a file to a specific location

Parameters:
uri The URI of the file to download
to The location of the downloaded file
Returns:
true if the file was succefully downloaded, false otherwise

double Spm::Plugin::DownloadInterface::getFractionDone  )  [inline]
 

virtual bool Spm::Plugin::DownloadInterface::handle const std::string &  uri  )  [pure virtual]
 

Check if the Plugin can handle an URI uri The URI to check.

Returns:
true if the plugin is able to handle the URI, false otherwise

Implements Spm::Plugin::Interface.


Member Data Documentation

double Spm::Plugin::DownloadInterface::fractionDone [protected]
 

Util::urlDetails Spm::Plugin::DownloadInterface::url [protected]
 


The documentation for this class was generated from the following file:
Generated on Wed Jul 4 15:27:21 2007 for libSpm by  doxygen 1.4.6