完善下载页面按钮的功能

This commit is contained in:
RigoLigoRLC
2022-02-19 19:30:10 +08:00
parent 8f32141726
commit d33e28b024
10 changed files with 218 additions and 33 deletions

View File

@@ -27,6 +27,7 @@ class SpkDownloadMgr : public QObject
FailCannotCreateFile, ///< Failed because destination file cannot be created
FailNoVaibleServer, ///< Failed because no server provides file size or download stalled on
///< all of them
FailCancel, ///< User has cancelled the task
Fail
};
@@ -67,6 +68,8 @@ class SpkDownloadMgr : public QObject
*/
static RemoteFileInfo GetRemoteFileInfo(QUrl url);
QString GetDestFilePath(QString downloadPath);
private:
QList<QString> mServers; ///< Multithreaded download