#include <clientmedia.h>
◆ IClientMediaDownloader()
IClientMediaDownloader::IClientMediaDownloader |
( |
| ) |
|
|
protected |
◆ ~IClientMediaDownloader()
virtual IClientMediaDownloader::~IClientMediaDownloader |
( |
| ) |
|
|
protectedvirtualdefault |
◆ addFile()
virtual void IClientMediaDownloader::addFile |
( |
const std::string & | name, |
|
|
const std::string & | sha1 ) |
|
pure virtual |
◆ addRemoteServer()
virtual void IClientMediaDownloader::addRemoteServer |
( |
const std::string & | baseurl | ) |
|
|
pure virtual |
◆ checkAndLoad()
bool IClientMediaDownloader::checkAndLoad |
( |
const std::string & | name, |
|
|
const std::string & | sha1, |
|
|
const std::string & | data, |
|
|
bool | is_from_cache, |
|
|
Client * | client ) |
|
protected |
References SHA1::addBytes(), SHA1::getDigest(), hex_encode(), infostream, loadMedia(), m_media_cache, m_write_to_cache, FileCache::update(), and verbosestream.
Referenced by ClientMediaDownloader::conventionalTransferDone(), SingleMediaDownloader::conventionalTransferDone(), ClientMediaDownloader::remoteMediaReceived(), SingleMediaDownloader::remoteMediaReceived(), and tryLoadFromCache().
◆ conventionalTransferDone()
virtual bool IClientMediaDownloader::conventionalTransferDone |
( |
const std::string & | name, |
|
|
const std::string & | data, |
|
|
Client * | client ) |
|
pure virtual |
◆ isDone()
virtual bool IClientMediaDownloader::isDone |
( |
| ) |
const |
|
pure virtual |
◆ isStarted()
virtual bool IClientMediaDownloader::isStarted |
( |
| ) |
const |
|
pure virtual |
◆ loadMedia()
virtual bool IClientMediaDownloader::loadMedia |
( |
Client * | client, |
|
|
const std::string & | data, |
|
|
const std::string & | name ) |
|
protectedpure virtual |
◆ step()
virtual void IClientMediaDownloader::step |
( |
Client * | client | ) |
|
|
pure virtual |
◆ tryLoadFromCache()
bool IClientMediaDownloader::tryLoadFromCache |
( |
const std::string & | name, |
|
|
const std::string & | sha1, |
|
|
Client * | client ) |
|
protected |
◆ m_media_cache
FileCache IClientMediaDownloader::m_media_cache |
|
protected |
◆ m_write_to_cache
bool IClientMediaDownloader::m_write_to_cache |
|
protected |
The documentation for this class was generated from the following files: