KNewStuff

filecopyworker.h
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{
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
Q_OBJECTQ_OBJECT
Q_SIGNALQ_SIGNAL
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:13:34 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.