digiKam
panotask.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_PANO_TASK_H
24 #define DIGIKAM_PANO_TASK_H
25 
26 // KDE includes
27 
28 #include <ThreadWeaver/Job>
29 
30 // Local includes
31 
32 #include "panoactions.h"
33 
35 {
36 
37 class PanoTask : public ThreadWeaver::Job
38 {
39 public:
40 
41  explicit PanoTask(PanoAction action, const QString& workDirPath);
42  ~PanoTask() override = default;
43 
44 public:
45 
46  bool success() const override;
47  void requestAbort() override;
48 
49 public:
50 
51  QString errString;
54 
55 protected:
56 
58  const QUrl tmpDir;
59 
60 private:
61 
62  // Disable
63  PanoTask() = delete;
64 
65  Q_DISABLE_COPY(PanoTask)
66 };
67 
68 } // namespace DigikamGenericPanoramaPlugin
69 
70 #endif // DIGIKAM_PANO_TASK_H
bool successFlag
Definition: panotask.h:57
void requestAbort() override
Definition: panotask.cpp:45
bool isAbortedFlag
Definition: panotask.h:53
bool success() const override
Definition: panotask.cpp:40
QString errString
Definition: panotask.h:51
const QUrl tmpDir
Definition: panotask.h:58
const PanoAction action
Definition: panotask.h:52
Definition: panoactions.h:36
PanoAction
Definition: panoactions.h:39