Logo Search packages:      
Sourcecode: libwfut version File versions  Download package

WFUT::WFUTClient Class Reference

#include <WFUT.h>

List of all members.


Detailed Description

The WFUTClient class should be the main class that client applications use. It wraps up the underlying function calls. The IO class may be of more interest to those looking for more direct control of downloads. The channel listings and channel file lists arae downloaded as a blocking function. It is expected that such files are quick to download. The main files to download are processed in chunks and progress through repeated calls to the poll function. It is intended that for a given channel, there will be a system version. These will be in a read-only location and may have been installed as part of a system packge. There will be a user writable location, referred to as the local version. The server version is the file stored on the remote web server.

Definition at line 44 of file WFUT.h.


Public Member Functions

WFUTError calculateUpdates (const ChannelFileList &server, const ChannelFileList &system, const ChannelFileList &local, ChannelFileList &updates, const std::string &prefix)
WFUTError getChannelList (const std::string &url, ChannelList &channels)
WFUTError getFileList (const std::string &url, ChannelFileList &files)
WFUTError getLocalList (const std::string &filename, ChannelFileList &files)
WFUTError init ()
int poll ()
WFUTError saveLocalList (const ChannelFileList &files, const std::string &filename)
WFUTError shutdown ()
void updateChannel (const ChannelFileList &updates, const std::string &urlPrefix, const std::string &pathPrefix)
void updateFile (const FileObject &file, const std::string &urlPrefix, const std::string &pathPrefix)

Public Attributes

sigc::signal< void, const
std::string &, const
std::string & > 
DownloadComplete
sigc::signal< void, const
std::string &, const
std::string &, const
std::string & > 
DownloadFailed

Private Member Functions

void onDownloadComplete (const std::string &url, const std::string &filename)
void onDownloadFailed (const std::string &url, const std::string &filename, const std::string &reason)

Private Attributes

bool m_initialised
IO * m_io

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index