digiKam
createmktask.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 : 2012-03-15
7  * Description : a tool to create panorama by fusion of several images.
8  *
9  * Copyright (C) 2012-2015 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_CREATE_MK_TASK_H
24 #define DIGIKAM_CREATE_MK_TASK_H
25 
26 // Local includes
27 
28 #include "commandtask.h"
29 
31 {
32 
33 class CreateMKTask : public CommandTask
34 {
35 public:
36 
37  explicit CreateMKTask(const QString& workDirPath,
38  const QUrl& input,
39  QUrl& mkUrl,
40  QUrl& panoUrl,
41  PanoramaFileType fileType,
42  const QString& pto2mkPath,
43  bool preview);
44  ~CreateMKTask() override;
45 
46 protected:
47 
48  void run(ThreadWeaver::JobPointer self, ThreadWeaver::Thread* thread) override;
49 
50 private:
51 
52  const QUrl& ptoUrl;
53  QUrl& mkUrl;
54  QUrl& panoUrl;
55  const PanoramaFileType fileType;
56 
57 private:
58 
59  // Disable
60  CreateMKTask() = delete;
61 
62  Q_DISABLE_COPY(CreateMKTask)
63 };
64 
65 } // namespace DigikamGenericPanoramaPlugin
66 
67 #endif // DIGIKAM_CREATE_MK_TASK_H
Definition: commandtask.h:38
Definition: createmktask.h:34
void run(ThreadWeaver::JobPointer self, ThreadWeaver::Thread *thread) override
Definition: createmktask.cpp:52
~CreateMKTask() override
Definition: createmktask.cpp:48
Definition: panoactions.h:36
PanoramaFileType
Definition: panoactions.h:61