
#include <tools/FileDownloader.hpp>
Public Slots | |
| void | downloadFinished (QNetworkReply *Reply) |
Signals | |
| void | processFinished () |
Static Public Member Functions | |
| static bool | downloadToString (const std::string &URL, std::string &Contents) |
| static bool | downloadToFile (const std::string &URL, const std::string &FilePath) |
Management of data downloads over network
| void openfluid::tools::FileDownloader::downloadFinished | ( | QNetworkReply * | Reply | ) | [slot] |
Stores file content downloaded in attribute
| [in] | Reply | Reply of sent request |
| static bool openfluid::tools::FileDownloader::downloadToFile | ( | const std::string & | URL, |
| const std::string & | FilePath | ||
| ) | [static] |
Downloads URL contents to file
| [in] | URL | The URL for the download |
| [out] | FilePath | The path of the file to store the downloaded contents |
| static bool openfluid::tools::FileDownloader::downloadToString | ( | const std::string & | URL, |
| std::string & | Contents | ||
| ) | [static] |
Downloads URL contents to string
| [in] | URL | The URL for the download |
| [out] | Contents | The string containing the downloaded contents |
| void openfluid::tools::FileDownloader::processFinished | ( | ) | [signal] |
Signal emitted when store of downloaded file content is finished
1.7.6.1