digiKam
metadatatask.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 : 2013-08-09
7  * Description : Thread actions task for metadata synchronizer.
8  *
9  * Copyright (C) 2013-2022 by Gilles Caulier <caulier dot gilles 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)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_METADATA_TASK_H
25 #define DIGIKAM_METADATA_TASK_H
26 
27 // Qt includes
28 
29 #include <QThread>
30 
31 // Local includes
32 
33 #include "actionthreadbase.h"
34 #include "iteminfo.h"
35 #include "metadatasynchronizer.h"
36 
37 namespace Digikam
38 {
39 
40 class MaintenanceData;
41 
42 class MetadataTask : public ActionJob
43 {
44  Q_OBJECT
45 
46 public:
47 
48  explicit MetadataTask();
49  ~MetadataTask() override;
50 
51  void setTagsOnly(bool value);
53  void setMaintenanceData(MaintenanceData* const data = nullptr);
54 
55 Q_SIGNALS:
56 
57  void signalFinished(const QImage&);
58 
59 protected:
60 
61  void run() override;
62 
63 private:
64 
65  // Disable
66  MetadataTask(QObject*) = delete;
67 
68 private:
69 
70  class Private;
71  Private* const d;
72 };
73 
74 } // namespace Digikam
75 
76 #endif // DIGIKAM_METADATA_TASK_H
Definition: actionthreadbase.h:45
Definition: maintenancedata.h:42
SyncDirection
Definition: metadatasynchronizer.h:47
Definition: metadatatask.h:43
void setTagsOnly(bool value)
Definition: metadatatask.cpp:68
void setDirection(MetadataSynchronizer::SyncDirection dir)
Definition: metadatatask.cpp:73
void run() override
Definition: metadatatask.cpp:83
MetadataTask()
Definition: metadatatask.cpp:56
void signalFinished(const QImage &)
~MetadataTask() override
Definition: metadatatask.cpp:62
void setMaintenanceData(MaintenanceData *const data=nullptr)
Definition: metadatatask.cpp:78
qulonglong value
Definition: itemviewutilities.cpp:592
Definition: datefolderview.cpp:43