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_COMPILE_MK_TASK_H
0016 #define DIGIKAM_COMPILE_MK_TASK_H
0017 
0018 // Local includes
0019 
0020 #include "commandtask.h"
0021 
0022 namespace DigikamGenericPanoramaPlugin
0023 {
0024 
0025 class CompileMKTask : public CommandTask
0026 {
0027 public:
0028 
0029     explicit CompileMKTask(const QString& workDirPath,
0030                            const QUrl& mkUrl,
0031                            const QUrl& panoUrl,
0032                            const QString& nonaPath,
0033                            const QString& enblendPath,
0034                            const QString& makePath,
0035                            bool preview);
0036     ~CompileMKTask() = default;
0037 
0038 protected:
0039 
0040     void run(ThreadWeaver::JobPointer self, ThreadWeaver::Thread* thread) override;
0041 
0042 private:
0043 
0044 /*
0045     const QUrl* const panoUrl;
0046 */
0047     const QUrl&       mkUrl;
0048     const QString     nonaPath;
0049     const QString     enblendPath;
0050 
0051 private:
0052 
0053     // Disable
0054     CompileMKTask() = delete;
0055 
0056     Q_DISABLE_COPY(CompileMKTask)
0057 };
0058 
0059 } // namespace DigikamGenericPanoramaPlugin
0060 
0061 #endif // DIGIKAM_COMPILE_MK_TASK_H