|
Qx v0.7
Qt Extensions Library
|
The DownloadManagerReport class details the outcome of processing an AsyncDownloadManager or SyncDownloadManager queue.
#include <qx/network/qx-downloadmanager.h>
Public Types | |
| enum class | Outcome { Success = 0x0 , Fail = 0x1 , Abort = 0x2 } |
Public Member Functions | |
| DownloadManagerReport () | |
| qsizetype | aborted () const |
| QString | details () const |
| QString | generalDetails () const |
| bool | isNull () const |
| Outcome | outcome () const |
| QString | outcomeString () const |
| qsizetype | skipped () const |
| QString | specificDetails () const |
| QList< DownloadOpReport > | taskReports () const |
| bool | wasSuccessful () const |
Public Member Functions inherited from Qx::AbstractError<"Qx::DownloadManagerReport", 3 > | |
| operator bool () const | |
| bool | operator!= (const AbstractError &other) const=default |
| bool | operator== (const AbstractError &other) const=default |
Additional Inherited Members | |
Static Public Attributes inherited from Qx::AbstractError<"Qx::DownloadManagerReport", 3 > | |
| static constexpr quint16 | TYPE_CODE |
| static constexpr QLatin1StringView | TYPE_NAME |
Protected Member Functions inherited from Qx::IError | |
| IError ()=default | |
| virtual QString | deriveCaption () const |
| virtual Severity | deriveSeverity () const |
| bool | operator!= (const IError &other) const =default |
| bool | operator== (const IError &other) const =default |
|
strong |
| Qx::DownloadManagerReport::DownloadManagerReport | ( | ) |
Constructs a null download manager report
| qsizetype Qx::DownloadManagerReport::aborted | ( | ) | const |
Returns the number of downloads that were aborted, if any.
| QString Qx::DownloadManagerReport::details | ( | ) | const |
Returns all extended error information, if present.
| QString Qx::DownloadManagerReport::generalDetails | ( | ) | const |
Returns general extended error information, if present.
| bool Qx::DownloadManagerReport::isNull | ( | ) | const |
Returns true if the report is null; otherwise, returns false.
| DownloadManagerReport::Outcome Qx::DownloadManagerReport::outcome | ( | ) | const |
Returns the overall processing outcome of the download manager the report was generated from.
| QString Qx::DownloadManagerReport::outcomeString | ( | ) | const |
Returns a string representation of the report outcome.
| qsizetype Qx::DownloadManagerReport::skipped | ( | ) | const |
Returns the number of downloads that were skipped, if any.
| QString Qx::DownloadManagerReport::specificDetails | ( | ) | const |
Returns download task specific extended error information, if present.
| QList< DownloadOpReport > Qx::DownloadManagerReport::taskReports | ( | ) | const |
Returns reports detailing the result of each individual download task that was part of the generating manager's queue.
| bool Qx::DownloadManagerReport::wasSuccessful | ( | ) | const |
Returns true if the download manager that generated this report processed its queue successfully; otherwise returns false.