KNewStuff

filecopyworker.h
1 /*
2  Copyright (C) 2016 Dan Leinir Turthra Jensen <[email protected]>
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 = nullptr);
30  ~FileCopyWorker() override;
31  void run() override;
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
Contains the core functionality for handling interaction with NewStuff providers. ...
Q_OBJECTQ_OBJECT
Q_SIGNALQ_SIGNAL
KIOWIDGETS_EXPORT bool run(const QUrl &_url, bool _is_local)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Aug 9 2020 22:43:40 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.