完成并发请求下载

This commit is contained in:
metanoia1989
2021-02-16 23:00:27 +08:00
parent 1a4b1176fb
commit 2f8c11a30b
5 changed files with 355 additions and 27 deletions

View File

@@ -39,6 +39,7 @@ class Widget;
class FlowLayout;
class DownloadController;
namespace AeaQt {
class HttpClient;
@@ -51,7 +52,7 @@ class Widget : public DBlurEffectWidget
public:
explicit Widget(DBlurEffectWidget *parent = nullptr);
~Widget();
void startRequest(QUrl url);
void startRequest(QUrl url, QString fileName);
void searchApp(QString);
int nowDownload=0;
int allDownload=0;
@@ -163,6 +164,7 @@ private:
AeaQt::HttpClient *httpClient;
FlowLayout *applist_grid;
QHBoxLayout *main;
DownloadController *downloadController;
};
#endif // WIDGET_H