One progress line read from the card database updater's stdout.
More...
#include <card_update_progress.h>
|
| QString | stageToken () const |
| | Protocol token of the stage ("download", "scan", "import" or "unknown"), for logging.
|
One progress line read from the card database updater's stdout.
◆ fromProtocolLine()
| std::optional< CardUpdateProgress > CardUpdateProgress::fromProtocolLine |
( |
const QByteArray & | line | ) |
|
|
static |
Parses one line of the updater stdout protocol: "PROGRESS <stage> <done> <total>".
- Parameters
-
| line | a single stdout line, with or without its trailing newline |
- Returns
- the parsed progress, or
std::nullopt when the line is not a valid progress line
◆ stageToken()
| QString CardUpdateProgress::stageToken |
( |
| ) |
const |
Protocol token of the stage ("download", "scan", "import" or "unknown"), for logging.
◆ done
| qint64 CardUpdateProgress::done = 0 |
◆ stage
◆ total
| qint64 CardUpdateProgress::total = 0 |
The documentation for this struct was generated from the following files: