52 explicit CDownload(QObject *parent =
nullptr);
71 int Start(QVector<QUrl> urls, QString szFileName = QString(),
bool bSequence =
false);
78 void sigError(
int nErr,
const QString szErr);
79 void sigDownloadProgress(qint64 bytesReceived, qint64 bytesTotal);
89 int DownloadFile(
int nIndex,
const QUrl &url,
bool bRedirection =
false);
90 int CloseReply(QNetworkReply* pReply,
bool bAbort =
false);
94 void slotError(QNetworkReply::NetworkError e);
95 void slotSslError(
const QList<QSslError> e);
96 void slotDownloadProgress(qint64 bytesReceived, qint64 bytesTotal);
101 QString m_szFileName;
103 QVector<QSharedPointer<QFile> > m_DownloadFile;
105 QNetworkAccessManager m_NetManager;
106 QMap<QNetworkReply*, int> m_Reply;
107 qint64 m_nBytesReceived;