digiKam
huginexecutortask.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2015-11-04
7  * Description : interface to hugin_executor
8  *
9  * Copyright (C) 2015-2016 by Benjamin Girault <benjamin dot girault at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * ============================================================ */
22 
23 #ifndef DIGIKAM_HUGIN_EXECUTOR_TASK_H
24 #define DIGIKAM_HUGIN_EXECUTOR_TASK_H
25 
26 // Local includes
27 
28 #include "commandtask.h"
29 
31 {
32 
34 {
35 public:
36 
37  explicit HuginExecutorTask(const QString& workDirPath,
38  const QUrl& input,
39  QUrl& panoUrl,
40  PanoramaFileType fileType,
41  const QString& huginExecutorPath,
42  bool preview);
43  ~HuginExecutorTask() override;
44 
45 protected:
46 
47  void run(ThreadWeaver::JobPointer self, ThreadWeaver::Thread* thread) override;
48 
49 private:
50 
51  const QUrl& ptoUrl;
52  QUrl& panoUrl;
53  const PanoramaFileType fileType;
54 
55 private:
56 
57  // Disable
58  HuginExecutorTask() = delete;
59 
60  Q_DISABLE_COPY(HuginExecutorTask)
61 };
62 
63 } // namespace DigikamGenericPanoramaPlugin
64 
65 #endif // DIGIKAM_HUGIN_EXECUTOR_TASK_H
Definition: commandtask.h:38
Definition: huginexecutortask.h:34
~HuginExecutorTask() override
Definition: huginexecutortask.cpp:46
void run(ThreadWeaver::JobPointer self, ThreadWeaver::Thread *thread) override
Definition: huginexecutortask.cpp:50
Definition: panoactions.h:36
PanoramaFileType
Definition: panoactions.h:61