Blender V5.3
blender::asset_system::ProgressTracker Struct Reference

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 ()

Detailed Description

Definition at line 273 of file remote_library.cc.

Member Function Documentation

◆ file_finished()

void blender::asset_system::ProgressTracker::file_finished ( StringRef absolute_file_url,
DownloadOutcome outcome )
static

◆ file_report_progress()

void blender::asset_system::ProgressTracker::file_report_progress ( StringRef absolute_file_url,
int64_t size_in_bytes )
static

◆ file_requested()

void blender::asset_system::ProgressTracker::file_requested ( wmWindowManager & wm,
RequestIdentifier && request,
std::string && abs_url,
int64_t size_in_bytes )
static

◆ is_any_loading()

bool blender::asset_system::ProgressTracker::is_any_loading ( )
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().

◆ on_all_finished()

void blender::asset_system::ProgressTracker::on_all_finished ( wmWindowManager & wm)
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().

Member Data Documentation

◆ current

◆ notification_timer

wmTimer * blender::asset_system::ProgressTracker::notification_timer = nullptr
static

Definition at line 276 of file remote_library.cc.

Referenced by file_requested(), and on_all_finished().


The documentation for this struct was generated from the following file: