SunRain / YADownloader

Yet another simple download library written in Qt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YADownloader

Yet another simple download(manager) library written in pure Qt5.

Basic usage

....

YADownloader::DLTaskAccessMgr *m_downloadMgr = new new DLTaskAccessMgr(this);
YADownloader::DLRequest req(url, savePath, saveName);
YADownloader::DLTask *m_task = m_downloadMgr->get(req);
connect(m_task, &DLTask::statusChanged, [&](const QString &uuid, DLTask::TaskStatus status) {
.....
};
connect(m_task, &DLTask::taskInfoChanged, [&](const QString &uuid, const DLTaskInfo &info) {
....
};
...

m_task->deleteLater();
m_task = nullptr;

For integrating with qml

main.cpp BDiskDownloadDelegate.cpp DownloadStore.qml DownloadingTaskView.qml

About

Yet another simple download library written in Qt

License:GNU Lesser General Public License v3.0


Languages

Language:C++ 98.6%Language:QMake 1.0%Language:C 0.4%