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
);
52
void
setDirection
(
MetadataSynchronizer::SyncDirection
dir);
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
actionthreadbase.h
Digikam::ActionJob
Definition:
actionthreadbase.h:45
Digikam::MaintenanceData
Definition:
maintenancedata.h:42
Digikam::MetadataSynchronizer::SyncDirection
SyncDirection
Definition:
metadatasynchronizer.h:47
Digikam::MetadataTask
Definition:
metadatatask.h:43
Digikam::MetadataTask::setTagsOnly
void setTagsOnly(bool value)
Definition:
metadatatask.cpp:68
Digikam::MetadataTask::setDirection
void setDirection(MetadataSynchronizer::SyncDirection dir)
Definition:
metadatatask.cpp:73
Digikam::MetadataTask::run
void run() override
Definition:
metadatatask.cpp:83
Digikam::MetadataTask::MetadataTask
MetadataTask()
Definition:
metadatatask.cpp:56
Digikam::MetadataTask::signalFinished
void signalFinished(const QImage &)
Digikam::MetadataTask::~MetadataTask
~MetadataTask() override
Definition:
metadatatask.cpp:62
Digikam::MetadataTask::setMaintenanceData
void setMaintenanceData(MaintenanceData *const data=nullptr)
Definition:
metadatatask.cpp:78
iteminfo.h
value
qulonglong value
Definition:
itemviewutilities.cpp:592
metadatasynchronizer.h
Digikam
Definition:
datefolderview.cpp:43
core
utilities
maintenance
metadatatask.h
Generated by
1.9.1