Monero
Loading...
Searching...
No Matches
tools::download_thread_control Struct Reference

Public Member Functions

 download_thread_control (const std::string &path, const std::string &uri, std::function< void(const std::string &, const std::string &, bool)> result_cb, std::function< bool(const std::string &, const std::string &, size_t, ssize_t)> progress_cb)
 ~download_thread_control ()

Public Attributes

const std::string path
const std::string uri
std::function< void(const std::string &, const std::string &, bool)> result_cb
std::function< bool(const std::string &, const std::string &, size_t, ssize_t)> progress_cb
bool stop
bool stopped
bool success
boost::thread thread
boost::mutex mutex

Constructor & Destructor Documentation

◆ download_thread_control()

tools::download_thread_control::download_thread_control ( const std::string & path,
const std::string & uri,
std::function< void(const std::string &, const std::string &, bool)> result_cb,
std::function< bool(const std::string &, const std::string &, size_t, ssize_t)> progress_cb )
inline

◆ ~download_thread_control()

tools::download_thread_control::~download_thread_control ( )
inline

Member Data Documentation

◆ mutex

boost::mutex tools::download_thread_control::mutex

◆ path

const std::string tools::download_thread_control::path

◆ progress_cb

std::function<bool(const std::string&, const std::string&, size_t, ssize_t)> tools::download_thread_control::progress_cb

◆ result_cb

std::function<void(const std::string&, const std::string&, bool)> tools::download_thread_control::result_cb

◆ stop

bool tools::download_thread_control::stop

◆ stopped

bool tools::download_thread_control::stopped

◆ success

bool tools::download_thread_control::success

◆ thread

boost::thread tools::download_thread_control::thread

◆ uri

const std::string tools::download_thread_control::uri

The documentation for this struct was generated from the following file: