An activity that downloads a file. More...
Public Types | |
|
typedef boost::shared_ptr < FileDownloadActivity > | SharedPtr |
Public Member Functions | |
| FileDownloadActivity (Tonido::Data::Message::SharedPtr &a_message, const std::string &a_fileName, const std::string &a_origFileName) | |
| void | setContentDisposition (const std::string &a_disposition) |
|
Poco::Activity < FileDownloadActivity > & | activity () |
| std::string | getFileName () |
| std::string | getOriginalFileName () |
| void | addTagData (const std::string &a_name, const std::string &a_value) |
| std::string | getTagData (const std::string &a_name) |
Protected Member Functions | |
| void | run () |
An activity that downloads a file.
File downloads can happen for large files, so this class spawns a thread that regularly sends out the file data at a specified file download rate