Class UpdateProgressReporter

Class Documentation

class UpdateProgressReporter

Thread-safe reporter for update progress.

Passed to UpdateProvider::prepare/execute. The plugin MAY use it to report fine-grained progress. If not used, UpdateManager still tracks base status (Pending -> InProgress -> Completed/Failed) automatically.

Public Functions

inline UpdateProgressReporter(UpdateStatusInfo &status, std::mutex &mutex)
inline void set_progress(int percent)
inline void set_sub_progress(std::vector<UpdateSubProgress> steps)