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_CREATE_PTO_TASK_H 0016 #define DIGIKAM_CREATE_PTO_TASK_H 0017 0018 // Qt includes 0019 0020 #include <QPointer> 0021 0022 // Local includes 0023 0024 #include "panotask.h" 0025 #include "metaengine.h" 0026 0027 using namespace Digikam; 0028 0029 namespace DigikamGenericPanoramaPlugin 0030 { 0031 0032 class CreatePtoTask : public PanoTask 0033 { 0034 public: 0035 0036 explicit CreatePtoTask(const QString& workDirPath, 0037 PanoramaFileType fileType, 0038 QUrl& ptoUrl, 0039 const QList<QUrl>& inputFiles, 0040 const PanoramaItemUrlsMap& preProcessedMap, 0041 bool addGPlusMetadata, 0042 const QString& huginVersion); 0043 ~CreatePtoTask() override; 0044 0045 protected: 0046 0047 void run(ThreadWeaver::JobPointer self, ThreadWeaver::Thread* thread) override; 0048 0049 private: 0050 0051 QUrl& ptoUrl; 0052 const PanoramaItemUrlsMap* const preProcessedMap; 0053 const PanoramaFileType fileType; 0054 const QList<QUrl>& inputFiles; 0055 const bool addGPlusMetadata; 0056 const QString& huginVersion; 0057 MetaEngine m_meta; 0058 0059 private: 0060 0061 // Disable 0062 CreatePtoTask() = delete; 0063 0064 Q_DISABLE_COPY(CreatePtoTask) 0065 }; 0066 0067 } // namespace DigikamGenericPanoramaPlugin 0068 0069 #endif // DIGIKAM_CREATE_PTO_TASK_H