|
Blender V5.3
|
Progress Tracking | |
| static ProgressData | current = {} |
| static wmTimer * | notification_timer = nullptr |
| static void | file_requested (wmWindowManager &wm, RequestIdentifier &&request, std::string &&abs_url, int64_t size_in_bytes) |
| static void | file_report_progress (StringRef absolute_file_url, int64_t size_in_bytes) |
| static void | file_finished (StringRef absolute_file_url, DownloadOutcome outcome) |
| static void | on_all_finished (wmWindowManager &wm) |
| static bool | is_any_loading () |
Definition at line 273 of file remote_library.cc.
|
static |
Should be called when a file download is finished, successfully or not.
Definition at line 330 of file remote_library.cc.
References current, blender::asset_system::ProgressData::done_files, blender::asset_system::Failed, blender::asset_system::ProgressData::requested_files, and blender::asset_system::Succeeded.
Referenced by blender::asset_system::ping_asset_file_done_impl().
|
static |
Definition at line 320 of file remote_library.cc.
References current.
Referenced by blender::asset_system::RemoteLibraryLoadingStatus::ping_asset_file_progress().
|
static |
Should be called when a file download is requested.
Definition at line 301 of file remote_library.cc.
References blender::asset_system::ProgressData::any_asset_file_loading, current, NC_WM, ND_JOB, notification_timer, blender::asset_system::ProgressData::req_to_full_urls, blender::asset_system::ProgressData::requested_files, and blender::WM_event_timer_add_notifier().
Referenced by blender::asset_system::remote_library_request_asset_download().
|
static |
Returns true if any asset files are currently downloading. This information is taken from the downloader every time a file is finished. So we don't rely on keeping track of all in-flight downloads ourselves.
Definition at line 362 of file remote_library.cc.
References blender::asset_system::ProgressData::any_asset_file_loading, and current.
Referenced by blender::asset_system::remote_library_has_unfinished_asset_downloads().
|
static |
Should be called when all downloads finished, successfully or not.
Definition at line 350 of file remote_library.cc.
References current, NC_WM, ND_JOB, notification_timer, blender::WM_event_add_notifier_ex(), and blender::WM_event_timer_remove().
Referenced by blender::asset_system::RemoteLibraryLoadingStatus::ping_download_queue_done().
|
static |
Definition at line 274 of file remote_library.cc.
Referenced by file_finished(), file_report_progress(), file_requested(), is_any_loading(), on_all_finished(), and blender::asset_system::remote_library_total_asset_downloads_progress().
Definition at line 276 of file remote_library.cc.
Referenced by file_requested(), and on_all_finished().