![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
Include dependency graph for download.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | MODPACKDL_SUFFIX ".json" |
| #define | MODPACK_CAPSTR "+modpack-1.0" |
| #define | MODLIST_CAPSTR "+modpack-index-1.0" |
| #define | FCMP_CONTROLD ".control" |
Typedefs | |
| using | dl_msg_callback = nf_errmsg |
| using | dl_pb_callback = std::function< void(int downloaded, int max)> |
| using | modpack_list_setup_cb = std::function< void(const QString &name, const QUrl &url, const QString &version, const QString &license, enum modpack_type type, const QString &subtype, const QString ¬es)> |
Functions | |
| const char * | download_modpack (const QUrl &url, const struct fcmp_params *fcmp, const dl_msg_callback &mcb, const dl_pb_callback &pbcb, int recursion=0) |
| Download modpack from a given URL. More... | |
| const char * | download_modpack_list (const struct fcmp_params *fcmp, const modpack_list_setup_cb &cb, const dl_msg_callback &mcb) |
| Download modpack list. More... | |
| #define FCMP_CONTROLD ".control" |
Definition at line 31 of file download.h.
| #define MODLIST_CAPSTR "+modpack-index-1.0" |
Definition at line 29 of file download.h.
| #define MODPACK_CAPSTR "+modpack-1.0" |
Definition at line 28 of file download.h.
| #define MODPACKDL_SUFFIX ".json" |
Definition at line 26 of file download.h.
| using dl_msg_callback = nf_errmsg |
Definition at line 33 of file download.h.
| using dl_pb_callback = std::function<void(int downloaded, int max)> |
Definition at line 34 of file download.h.
| using modpack_list_setup_cb = std::function<void( const QString &name, const QUrl &url, const QString &version, const QString &license, enum modpack_type type, const QString &subtype, const QString ¬es)> |
Definition at line 40 of file download.h.
| const char* download_modpack | ( | const QUrl & | url, |
| const struct fcmp_params * | fcmp, | ||
| const dl_msg_callback & | mcb, | ||
| const dl_pb_callback & | pbcb, | ||
| int | recursion = 0 |
||
| ) |
Download modpack from a given URL.
Definition at line 150 of file download.cpp.
Referenced by main(), and mpqt_worker::run().
| const char* download_modpack_list | ( | const struct fcmp_params * | fcmp, |
| const modpack_list_setup_cb & | cb, | ||
| const dl_msg_callback & | mcb | ||
| ) |