13 #ifndef FC__MODPACK_DOWNLOAD_H
14 #define FC__MODPACK_DOWNLOAD_H
26 #define MODPACKDL_SUFFIX ".json"
28 #define MODPACK_CAPSTR "+modpack-1.0"
29 #define MODLIST_CAPSTR "+modpack-index-1.0"
31 #define FCMP_CONTROLD ".control"
41 const QString &
name,
const QUrl &url,
const QString &version,
42 const QString &license,
enum modpack_type type,
const QString &subtype,
43 const QString ¬es)>;
std::function< void(int downloaded, int max)> dl_pb_callback
const char * download_modpack_list(const struct fcmp_params *fcmp, const modpack_list_setup_cb &cb, const dl_msg_callback &mcb)
Download modpack list.
nf_errmsg dl_msg_callback
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.
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)> modpack_list_setup_cb
std::function< void(const QString &message)> nf_errmsg
static int recursion[AIT_LAST]