34 Q_EMIT description(
this, tr(
"Downloading"),
35 qMakePair<QString, QString>(tr(
"Source"), m_url.toDisplayString()),
36 qMakePair<QString, QString>(tr(
"Destination"),
QSL(
"%1/%2").arg(m_path, m_fileName)));
41 setProcessedAmount(Bytes, received);
42 setTotalAmount(Bytes, total);
43 Q_EMIT speed(
this, currSpeed);
void progress(double currSpeed, qint64 received, qint64 total)
DownloadKJob(const QUrl &url, const QString &path, const QString &fileName, QObject *parent=nullptr)