LocalFileDownloader Class
(KDUpdater::LocalFileDownloader)The LocalFileDownloader class is used to copy files from the local file system. More...
Header: | #include <LocalFileDownloader> |
Public Variables
Protected Functions
void | onError() |
void | onSuccess() |
void | timerEvent(int *event) override |
Detailed Description
The LocalFileDownloader class is used to copy files from the local file system.
The user of KDUpdater might be simultaneously downloading several files; sometimes in parallel to other file downloaders. If copying a local file takes a long time, it will make the other downloads hang. Therefore, a timer is used and one block of data is copied per unit time, even though QFile::copy() does the task of copying local files from one place to another.