#include <progressmonitor.h>
Allows to be informed during time-intensive source control operations such as file sync. The monitor is called frequently during the operation.
Public Member Functions | |
MAXON_METHOD Result< void > | Initialize (const String &command, const ArrayInterface< String > &arguments) |
MAXON_METHOD Result< void > | TotalBytesToProcess (UInt bytes) |
MAXON_METHOD Result< void > | FinishedBytesToProcess (UInt bytes) |
MAXON_METHOD Result< void > | Finalize () |
Private Member Functions | |
MAXON_INTERFACE (ProgressMonitorInterface, MAXON_REFERENCE_NORMAL, "net.maxon.misc.interface.progressmonitor") | |
|
private |
MAXON_METHOD Result<void> Initialize | ( | const String & | command, |
const ArrayInterface< String > & | arguments | ||
) |
Called before the source control operation.
[in] | command | The command string of the operation. |
[in] | arguments | The set of arguments used with the command. |
MAXON_METHOD Result<void> TotalBytesToProcess | ( | UInt | bytes | ) |
Called once for the command. Note that this function might not be executed at all, or is executed after the operation is already progressing, such as a a download being partially complete, which is indicated by a call to FinishedBytesToProcess() before calling TotalBytesToProcess().
[in] | bytes | The total number of bytes for the operation. |
MAXON_METHOD Result<void> FinishedBytesToProcess | ( | UInt | bytes | ) |
Called frequently, multiple times during the operation. Note that this function might not be executed at all. The sum of all reported finished bytes equals the total amount of bytes for a successful operation.
[in] | bytes | The number of progress in bytes since the last call to TotalBytesToProcess(). |
MAXON_METHOD Result<void> Finalize | ( | ) |
This method is called after the source control operation terminated successfully.