digiKam
autocroptask.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_AUTO_CROP_TASK_H
24 #define DIGIKAM_AUTO_CROP_TASK_H
25 
26 // Local includes
27 
28 #include "commandtask.h"
29 
31 {
32 
33 class AutoCropTask : public CommandTask
34 {
35 
36 public:
37 
38  explicit AutoCropTask(const QString& workDirPath,
39  const QUrl& autoOptimiserPtoUrl,
40  QUrl& viewCropPtoUrl,
41  bool buildGPano,
42  const QString& panoModifyPath);
43  ~AutoCropTask() = default;
44 
45 protected:
46 
47  void run(ThreadWeaver::JobPointer self, ThreadWeaver::Thread* thread) override;
48 
49 private:
50 
51  const QUrl& autoOptimiserPtoUrl;
52  QUrl& viewCropPtoUrl;
53 /*
54  const bool buildGPano;
55 */
56 
57 private:
58 
59  // Disable
60  AutoCropTask() = delete;
61 
62  Q_DISABLE_COPY(AutoCropTask)
63 };
64 
65 } // namespace DigikamGenericPanoramaPlugin
66 
67 #endif // DIGIKAM_AUTO_CROP_TASK_H
Definition: autocroptask.h:34
void run(ThreadWeaver::JobPointer self, ThreadWeaver::Thread *thread) override
Definition: autocroptask.cpp:45
Definition: commandtask.h:38
Definition: panoactions.h:36