digiKam
createpreviewtask.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_PREVIEW_TASK_H
24 #define DIGIKAM_CREATE_PREVIEW_TASK_H
25 
26 // Qt includes
27 
28 #include <QPointer>
29 
30 // Local includes
31 
32 #include "panotask.h"
33 #include "ptotype.h"
34 #include "metaengine.h"
35 
36 using namespace Digikam;
37 
39 {
40 
42 {
43 public:
44 
45  explicit CreatePreviewTask(const QString& workDirPath,
46  QSharedPointer<const PTOType> inputPTO,
47  QUrl& previewPtoUrl,
48  const PanoramaItemUrlsMap& preProcessedUrlsMap);
49  ~CreatePreviewTask() override;
50 
51 protected:
52 
53  void run(ThreadWeaver::JobPointer self, ThreadWeaver::Thread* thread) override;
54 
55 private:
56 
57  QUrl& previewPtoUrl;
58  QSharedPointer<const PTOType> ptoData;
59  const PanoramaItemUrlsMap preProcessedUrlsMap;
60  MetaEngine m_meta;
61 
62 private:
63 
64  // Disable
65  CreatePreviewTask() = delete;
66 
67  Q_DISABLE_COPY(CreatePreviewTask)
68 };
69 
70 } // namespace DigikamGenericPanoramaPlugin
71 
72 #endif // DIGIKAM_CREATE_PREVIEW_TASK_H
Definition: createpreviewtask.h:42
Definition: metaengine.h:58
Definition: panoactions.h:36
QMap< QUrl, PanoramaPreprocessedUrls > PanoramaItemUrlsMap
Map between original Url and processed temp Urls.
Definition: panoactions.h:87
Definition: datefolderview.cpp:43