1/*
2 SPDX-FileCopyrightText: 2016 Dan Leinir Turthra Jensen <admin@leinir.dk>
3
4 SPDX-License-Identifier: LGPL-2.1-or-later
5*/
6
7#ifndef FILECOPYWORKER_H
8#define FILECOPYWORKER_H
9
10#include <QThread>
11#include <QUrl>
12
13namespace KNSCore
14{
15class FileCopyWorkerPrivate;
16class FileCopyWorker : public QThread
17{
18 Q_OBJECT
19public:
20 explicit FileCopyWorker(const QUrl &source, const QUrl &destination, QObject *parent = nullptr);
21 ~FileCopyWorker() override;
22 void run() override;
23
24 Q_SIGNAL void progress(qlonglong current, qlonglong total);
25 Q_SIGNAL void completed();
26 Q_SIGNAL void error(const QString &message);
27
28private:
29 const std::unique_ptr<FileCopyWorkerPrivate> d;
30};
31
32}
33
34#endif // FILECOPYWORKER_H
35

source code of knewstuff/src/core/jobs/filecopyworker.h