1#ifndef QX_DOWNLOADOPREPORT_H
2#define QX_DOWNLOADOPREPORT_H
5#include "qx/network/qx_network_export.h"
8#include "qx/network/qx-downloadtask.h"
16class QX_NETWORK_EXPORT DownloadOpReport final :
public AbstractError<"Qx::DownloadOpReport", 4>
29 static inline const QString COMPLETE = u
"The download [%1] -> [%2] did completed succesfully"_s;
30 static inline const QString INCOMPLETE = u
"The download [%1] -> [%2] did not complete"_s;
31 static inline const QString FAILED = u
"Error: %1"_s;
32 static inline const QString ABORTED = u
"Task was aborted."_s;
33 static inline const QString SKIPPED = u
"Task was skipped due to previous errors."_s;
38 QString mResultString;
54 quint32 deriveValue()
const override;
55 Severity deriveSeverity()
const override;
56 QString derivePrimary()
const override;
57 QString deriveSecondary()
const override;
60 Result result()
const;
61 QString resultString()
const;
63 bool wasSuccessful()
const;
The DownloadOpReport class details the result of a single file download.
Definition qx-downloadopreport.h:17
Result
Definition qx-downloadopreport.h:20
@ Skipped
Definition qx-downloadopreport.h:22
@ Aborted
Definition qx-downloadopreport.h:23
@ Completed
Definition qx-downloadopreport.h:21
@ Failed
Definition qx-downloadopreport.h:24
The Qx namespace is the main namespace through which all non-global functionality of the Qx library i...
Definition qx-abstracterror.cpp:13
Severity
Definition qx-global.h:11
The qx-abstracterror.h header file provides access to the base class from which custom error types sh...
The DownloadTask struct contains the information necessary to download a file from a URL.
Definition qx-downloadtask.h:14