digiKam
copyfilestask.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_COPY_FILES_TASK_H
24 #define DIGIKAM_COPY_FILES_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 CopyFilesTask : public PanoTask
41 {
42 public:
43 
44  explicit CopyFilesTask(const QString& workDirPath,
45  const QUrl& panoUrl,
46  const QUrl& finalPanoUrl,
47  const QUrl& ptoUrl,
48  const PanoramaItemUrlsMap& urls,
49  bool sPTO,
50  bool GPlusMetadata);
51  ~CopyFilesTask() override;
52 
53 protected:
54 
55  void run(ThreadWeaver::JobPointer self, ThreadWeaver::Thread* thread) override;
56 
57 private:
58 
59  const QUrl& panoUrl;
60  const QUrl finalPanoUrl;
61  const QUrl& ptoUrl;
62  const PanoramaItemUrlsMap* const urlList;
63  const bool savePTO;
64  const bool addGPlusMetadata;
65 
66 private:
67 
68  // Disable
69  CopyFilesTask() = delete;
70 
71  Q_DISABLE_COPY(CopyFilesTask)
72 };
73 
74 } // namespace DigikamGenericPanoramaPlugin
75 
76 #endif // DIGIKAM_COPY_FILES_TASK_H
Definition: copyfilestask.h:41
Definition: panoactions.h:36
QMap< QUrl, PanoramaPreprocessedUrls > PanoramaItemUrlsMap
Map between original Url and processed temp Urls.
Definition: panoactions.h:87
Definition: datefolderview.cpp:43