digiKam
preprocesstask.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_PRE_PROCESS_TASK_H
24 #define DIGIKAM_PRE_PROCESS_TASK_H
25 
26 // Qt includes
27 
28 #include <QPointer>
29 
30 // Local includes
31 
32 #include "panotask.h"
33 #include "dmetadata.h"
34 
35 using namespace Digikam;
36 
38 {
39 
40 class PreProcessTask : public PanoTask
41 {
42 public:
43 
44  const int id;
45 
46 public:
47 
48  explicit PreProcessTask(const QString& workDirPath,
49  int id,
50  PanoramaPreprocessedUrls& targetUrls,
51  const QUrl& sourceUrl);
52  ~PreProcessTask() override;
53 
54  void requestAbort() override;
55 
56 protected:
57 
58  void run(ThreadWeaver::JobPointer self,
59  ThreadWeaver::Thread* thread) override;
60 
61 private:
62 
63  bool computePreview(const QUrl& inUrl);
64  bool convertRaw();
65 
66 private:
67 
68  class Private;
69  Private* const d;
70 
71 private:
72 
73  // Disable
74  PreProcessTask() = delete;
75 
76  Q_DISABLE_COPY(PreProcessTask)
77 };
78 
79 } // namespace DigikamGenericPanoramaPlugin
80 
81 #endif // DIGIKAM_PRE_PROCESS_TASK_H
Definition: preprocesstask.h:41
const int id
Definition: preprocesstask.h:44
Definition: panoactions.h:36
Definition: datefolderview.cpp:43