digiKam
createptotask.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_PTO_TASK_H
24 #define DIGIKAM_CREATE_PTO_TASK_H
25 
26 // Qt includes
27 
28 #include <QPointer>
29 
30 // Local includes
31 
32 #include "panotask.h"
33 #include "metaengine.h"
34 
35 using namespace Digikam;
36 
38 {
39 
40 class CreatePtoTask : public PanoTask
41 {
42 public:
43 
44  explicit CreatePtoTask(const QString& workDirPath,
45  PanoramaFileType fileType,
46  QUrl& ptoUrl,
47  const QList<QUrl>& inputFiles,
48  const PanoramaItemUrlsMap& preProcessedMap,
49  bool addGPlusMetadata,
50  const QString& huginVersion);
51  ~CreatePtoTask() override;
52 
53 protected:
54 
55  void run(ThreadWeaver::JobPointer self, ThreadWeaver::Thread* thread) override;
56 
57 private:
58 
59  QUrl& ptoUrl;
60  const PanoramaItemUrlsMap* const preProcessedMap;
61  const PanoramaFileType fileType;
62  const QList<QUrl>& inputFiles;
63  const bool addGPlusMetadata;
64  const QString& huginVersion;
65  MetaEngine m_meta;
66 
67 private:
68 
69  // Disable
70  CreatePtoTask() = delete;
71 
72  Q_DISABLE_COPY(CreatePtoTask)
73 };
74 
75 } // namespace DigikamGenericPanoramaPlugin
76 
77 #endif // DIGIKAM_CREATE_PTO_TASK_H
Definition: createptotask.h:41
Definition: metaengine.h:58
Definition: panoactions.h:36
PanoramaFileType
Definition: panoactions.h:61
QMap< QUrl, PanoramaPreprocessedUrls > PanoramaItemUrlsMap
Map between original Url and processed temp Urls.
Definition: panoactions.h:87
Definition: datefolderview.cpp:43