|
Qx v0.7.0.2
Qt Extensions Library
|
The DownloadOpReport class details the result of a single file download.
#include <qx/network/qx-downloadopreport.h>
Public Types | |
| enum | Result { Completed = 0 , Skipped = 1 , Aborted = 2 , Failed = 3 } |
Public Member Functions | |
| Result | result () const |
| QString | resultString () const |
| DownloadTask | task () const |
| bool | wasSuccessful () const |
Public Member Functions inherited from Qx::AbstractError<"Qx::DownloadOpReport", 4 > | |
| operator bool () const | |
| bool | operator!= (const AbstractError &other) const=default |
| bool | operator== (const AbstractError &other) const=default |
Static Public Member Functions | |
| static DownloadOpReport | abortedDownload (const DownloadTask &task) |
| static DownloadOpReport | completedDownload (const DownloadTask &task) |
| static DownloadOpReport | failedDownload (const DownloadTask &task, QString error) |
| static DownloadOpReport | skippedDownload (const DownloadTask &task) |
Additional Inherited Members | |
Static Public Attributes inherited from Qx::AbstractError<"Qx::DownloadOpReport", 4 > | |
| static constexpr quint16 | TYPE_CODE |
| static constexpr QLatin1StringView | TYPE_NAME |
Protected Member Functions inherited from Qx::IError | |
| IError ()=default | |
| virtual QString | deriveCaption () const |
| virtual QString | deriveDetails () const |
| bool | operator!= (const IError &other) const =default |
| bool | operator== (const IError &other) const =default |
|
static |
Constructs an operation report that notes the download task was aborted.
|
static |
Constructs an operation report that notes the download task completed successfully.
|
static |
Constructs an operation report that notes the download task failed.
| DownloadOpReport::Result Qx::DownloadOpReport::result | ( | ) | const |
Returns the result of the task this report describes.
| QString Qx::DownloadOpReport::resultString | ( | ) | const |
Returns a string representation of the result.
|
static |
Constructs an operation report that notes the download task was skipped.
| DownloadTask Qx::DownloadOpReport::task | ( | ) | const |
Returns the task this report describes.
| bool Qx::DownloadOpReport::wasSuccessful | ( | ) | const |
Returns true if the download task completed successfully; otherwise, returns false.