Changeset View
Changeset View
Standalone View
Standalone View
src/core/jobs/filecopyworker.h
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | Copyright (C) 2016 Dan Leinir Turthra Jensen <admin@leinir.dk> | ||||
3 | | ||||
4 | This library is free software; you can redistribute it and/or | ||||
5 | modify it under the terms of the GNU Lesser General Public | ||||
6 | License as published by the Free Software Foundation; either | ||||
7 | version 2.1 of the License, or (at your option) any later version. | ||||
8 | | ||||
9 | This library is distributed in the hope that it will be useful, | ||||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||||
12 | Lesser General Public License for more details. | ||||
13 | | ||||
14 | You should have received a copy of the GNU Lesser General Public | ||||
15 | License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||||
16 | */ | ||||
17 | | ||||
18 | #ifndef FILECOPYWORKER_H | ||||
19 | #define FILECOPYWORKER_H | ||||
20 | | ||||
21 | #include <QThread> | ||||
22 | #include <QUrl> | ||||
23 | | ||||
24 | namespace KNSCore { | ||||
25 | | ||||
26 | class FileCopyWorker : public QThread { | ||||
27 | Q_OBJECT | ||||
28 | public: | ||||
29 | explicit FileCopyWorker(const QUrl& source, const QUrl& destination, QObject* parent = 0); | ||||
30 | virtual ~FileCopyWorker(); | ||||
31 | virtual void run(); | ||||
32 | | ||||
33 | Q_SIGNAL void progress(qlonglong current, qlonglong total); | ||||
34 | Q_SIGNAL void completed(); | ||||
35 | private: | ||||
36 | class Private; | ||||
37 | Private* d; | ||||
38 | }; | ||||
39 | | ||||
40 | } | ||||
41 | | ||||
42 | #endif//FILECOPYWORKER_H |