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_PANO_TASK_H 0016 #define DIGIKAM_PANO_TASK_H 0017 0018 // KDE includes 0019 0020 #include <ThreadWeaver/Job> 0021 0022 // Local includes 0023 0024 #include "panoactions.h" 0025 0026 namespace DigikamGenericPanoramaPlugin 0027 { 0028 0029 class PanoTask : public ThreadWeaver::Job 0030 { 0031 public: 0032 0033 explicit PanoTask(PanoAction action, const QString& workDirPath); 0034 ~PanoTask() override = default; 0035 0036 public: 0037 0038 bool success() const override; 0039 void requestAbort() override; 0040 0041 public: 0042 0043 QString errString; 0044 const PanoAction action; 0045 bool isAbortedFlag; 0046 0047 protected: 0048 0049 bool successFlag; 0050 const QUrl tmpDir; 0051 0052 private: 0053 0054 // Disable 0055 PanoTask() = delete; 0056 0057 Q_DISABLE_COPY(PanoTask) 0058 }; 0059 0060 } // namespace DigikamGenericPanoramaPlugin 0061 0062 #endif // DIGIKAM_PANO_TASK_H