File indexing completed on 2025-01-05 03:53:10
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2012-03-15 0007 * Description : a tool to create panorama by fusion of several images. 0008 * 0009 * SPDX-FileCopyrightText: 2012-2015 by Benjamin Girault <benjamin dot girault at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #ifndef DIGIKAM_COPY_FILES_TASK_H 0016 #define DIGIKAM_COPY_FILES_TASK_H 0017 0018 // Qt includes 0019 0020 #include <QPointer> 0021 0022 // Local includes 0023 0024 #include "panotask.h" 0025 #include "dmetadata.h" 0026 0027 using namespace Digikam; 0028 0029 namespace DigikamGenericPanoramaPlugin 0030 { 0031 0032 class CopyFilesTask : public PanoTask 0033 { 0034 public: 0035 0036 explicit CopyFilesTask(const QString& workDirPath, 0037 const QUrl& panoUrl, 0038 const QUrl& finalPanoUrl, 0039 const QUrl& ptoUrl, 0040 const PanoramaItemUrlsMap& urls, 0041 bool sPTO, 0042 bool GPlusMetadata); 0043 ~CopyFilesTask() override; 0044 0045 protected: 0046 0047 void run(ThreadWeaver::JobPointer self, ThreadWeaver::Thread* thread) override; 0048 0049 private: 0050 0051 const QUrl& panoUrl; 0052 const QUrl finalPanoUrl; 0053 const QUrl& ptoUrl; 0054 const PanoramaItemUrlsMap* const urlList; 0055 const bool savePTO; 0056 const bool addGPlusMetadata; 0057 0058 private: 0059 0060 // Disable 0061 CopyFilesTask() = delete; 0062 0063 Q_DISABLE_COPY(CopyFilesTask) 0064 }; 0065 0066 } // namespace DigikamGenericPanoramaPlugin 0067 0068 #endif // DIGIKAM_COPY_FILES_TASK_H