KNewStuff

filecopyworker.h
1 /*
2  SPDX-FileCopyrightText: 2016 Dan Leinir Turthra Jensen <[email protected]>
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 
13 namespace KNSCore {
14 
15 class FileCopyWorker : public QThread {
16  Q_OBJECT
17 public:
18  explicit FileCopyWorker(const QUrl& source, const QUrl& destination, QObject* parent = nullptr);
19  ~FileCopyWorker() override;
20  void run() override;
21 
22  Q_SIGNAL void progress(qlonglong current, qlonglong total);
23  Q_SIGNAL void completed();
24 private:
25  class Private;
26  Private* d;
27 };
28 
29 }
30 
31 #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-2021 The KDE developers.
Generated on Mon Jan 18 2021 22:43:49 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.