File indexing completed on 2025-01-19 03:52:56

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2019-03-27
0007  * Description : file copy thread.
0008  *
0009  * SPDX-FileCopyrightText: 2012      by Smit Mehta <smit dot meh at gmail dot com>
0010  * SPDX-FileCopyrightText: 2012-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0011  * SPDX-FileCopyrightText: 2019-2020 by Maik Qualmann <metzpinguin at gmail dot com>
0012  *
0013  * SPDX-License-Identifier: GPL-2.0-or-later
0014  *
0015  * ============================================================ */
0016 
0017 #ifndef DIGIKAM_FC_THREAD_H
0018 #define DIGIKAM_FC_THREAD_H
0019 
0020 // Qt includes
0021 
0022 #include <QUrl>
0023 
0024 // Local includes
0025 
0026 #include "actionthreadbase.h"
0027 #include "fccontainer.h"
0028 
0029 using namespace Digikam;
0030 
0031 namespace DigikamGenericFileCopyPlugin
0032 {
0033 
0034 class FCThread : public ActionThreadBase
0035 {
0036     Q_OBJECT
0037 
0038 public:
0039 
0040     explicit FCThread(QObject* const parent);
0041     ~FCThread() override;
0042 
0043     void createCopyJobs(const QList<QUrl>& itemsList,
0044                         const FCContainer& settings);
0045     void cancel();
0046 
0047 Q_SIGNALS:
0048 
0049     void signalUrlProcessed(const QUrl& from, const QUrl& to);
0050     void signalCancelTask();
0051 };
0052 
0053 } // namespace DigikamGenericFileCopyPlugin
0054 
0055 #endif // DIGIKAM_FC_THREAD_H