1#ifndef QX_DOWNLOADMANAGERREPORT_H
2#define QX_DOWNLOADMANAGERREPORT_H
5#include "qx/network/qx_network_export.h"
11#include "qx/network/qx-downloadopreport.h"
20class AsyncDownloadManager;
52 quint32 deriveValue()
const override;
53 QString derivePrimary()
const override;
54 QString deriveSecondary()
const override;
55 QString deriveDetails()
const override;
58 Outcome outcome()
const;
60 QString specificDetails()
const;
64 bool wasSuccessful()
const;
68 qsizetype skipped()
const;
69 qsizetype aborted()
const;
77class DownloadManagerReport::Builder
82 static inline const QString SUCCESS = u
"All download tasks completed successfully."_s;
85 static inline const QString ERR_P_QUEUE_INCOMPL = u
"The download(s) failed to complete successfully."_s;
86 static inline const QString ERR_S_OUTCOME_FAIL = u
"One or more downloads failed due to the following reasons."_s;
89 static inline const QString ERR_D_SKIP = u
"%1 remaining download(s) were skipped due to previous errors aborted."_s;
90 static inline const QString ERR_D_ABORT = u
"%1 remaining download(s) were aborted."_s;
91 static inline const QString ERR_D_SPECIFIC = u
"Specific:"_s;
92 static inline const QString ERR_D_GENERAL = u
"General:"_s;
93 static inline const QString ERR_D_LIST_ITEM = u
"[%1] %2"_s;
97 DownloadManagerReport mWorkingReport;
105 void updateOutcome(
const DownloadOpReport& dop);
108 void wDownload(DownloadOpReport downloadReport);
109 DownloadManagerReport build();
The AbstractError template class completes the Error interface and acts as the base class from which ...
Definition qx-abstracterror.h:86
The AsyncDownloadManager class is used to queue and process one or more downloads in an asynchronous ...
Definition qx-downloadmanager.h:45
The DownloadManagerReport class details the outcome of processing an AsyncDownloadManager or SyncDown...
Definition qx-downloadmanagerreport.h:23
Outcome
Definition qx-downloadmanagerreport.h:28
The Qx namespace is the main namespace through which all non-global functionality of the Qx library i...
Definition qx-processwaiter.cpp:5
The qx-abstracterror.h header file provides access to the base class from which custom error types sh...