49 explicit CDownload(QObject *parent =
nullptr);
68 int Start(QVector<QUrl> urls, QString szFileName = QString(),
bool bSequence =
false);
75 void sigError(
int nErr,
const QString szErr);
76 void sigDownloadProgress(qint64 bytesReceived, qint64 bytesTotal);
86 int DownloadFile(
int nIndex,
const QUrl &url,
bool bRedirection =
false);
87 int CloseReply(QNetworkReply* pReply,
bool bAbort =
false);
91 void slotError(QNetworkReply::NetworkError e);
92 void slotSslError(
const QList<QSslError> e);
93 void slotDownloadProgress(qint64 bytesReceived, qint64 bytesTotal);
100 QVector<QSharedPointer<QFile> > m_DownloadFile;
102 QNetworkAccessManager m_NetManager;
103 QMap<QNetworkReply*, int> m_Reply;
104 qint64 m_nBytesReceived;