Tag Parser 12.4.0
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
|
The ProgressFeedback class provides feedback about an ongoing operation via callbacks. More...
#include <progressfeedback.h>
Public Member Functions | |
ProgressFeedback (const Callback &callback, const Callback &percentageOnlyCallback=Callback()) | |
Constructs a new ProgressFeedback. | |
ProgressFeedback (Callback &&callback=Callback(), Callback &&percentageOnlyCallback=Callback()) | |
Constructs a new ProgressFeedback. | |
Public Member Functions inherited from TagParser::BasicProgressFeedback< ProgressFeedback > | |
BasicProgressFeedback (const Callback &callback, const Callback &percentageOnlyCallback=Callback()) | |
Constructs a new BasicProgressFeedback. | |
BasicProgressFeedback (Callback &&callback=Callback(), Callback &&percentageOnlyCallback=Callback()) | |
Constructs a new BasicProgressFeedback. | |
const std::string & | step () const |
Returns the name of the current step (initially empty). | |
std::uint8_t | stepPercentage () const |
Returns the percentage of the current step (initially 0, supposed to be a value from 0 to 100). | |
std::uint8_t | overallPercentage () const |
Returns the overall percentage (initially 0, supposed to be a value from 0 to 100). | |
void | updateStep (const std::string &step, std::uint8_t stepPercentage=0) |
Updates the current step and invokes the first callback specified on construction. | |
void | updateStep (std::string &&step, std::uint8_t stepPercentage=0) |
Updates the current step and invokes the first callback specified on construction. | |
void | updateStepPercentage (std::uint8_t stepPercentage) |
Updates the current step percentage and invokes the second callback specified on construction (or the first if only one has been specified). | |
void | updateStepPercentageFromFraction (double stepPercentage) |
Updates the current step percentage and invokes the second callback specified on construction (or the first if only one has been specified). | |
void | updateOverallPercentage (std::uint8_t overallPercentage) |
Updates the overall percentage and invokes the second callback specified on construction (or the first if only one has been specified). | |
Additional Inherited Members | |
Public Types inherited from TagParser::BasicProgressFeedback< ProgressFeedback > | |
using | Callback |
The ProgressFeedback class provides feedback about an ongoing operation via callbacks.
Definition at line 160 of file progressfeedback.h.
|
inlineexplicit |
Constructs a new ProgressFeedback.
It will call callback on the next step and percentageOnlyCallback when only the percentage changes.
Definition at line 171 of file progressfeedback.h.
|
inlineexplicit |
Constructs a new ProgressFeedback.
It will call callback on the next step and percentageOnlyCallback when only the percentage changes.
Definition at line 181 of file progressfeedback.h.