digiKam
Loading...
Searching...
No Matches
autotagsassignment.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 : 2023-09-02
7 * Description : Autotags Assignment maintenance tool
8 *
9 * SPDX-FileCopyrightText: 2023 by Quoc Hung Tran <quochungtran1999 at gmail dot com>
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 * ============================================================ */
14
15#pragma once
16
17// Qt includes
18
19#include <QObject>
20
21// Local includes
22
23#include "album.h"
24#include "maintenancetool.h"
26
27class QImage;
28
29namespace Digikam
30{
31
32class ItemInfo;
33
35{
36 Q_OBJECT
37
38public:
39
45
46public:
47
52 const AlbumList& list,
53 int modelType,
54 const QStringList& langs,
55 ProgressItem* const parent = nullptr);
56 ~AutotagsAssignment() override;
57
58 void setUseMultiCoreCPU(bool b) override;
59
60private:
61
62 void processOne();
63
64private Q_SLOTS:
65
66 void slotStart() override;
67 void slotCancel() override;
68 void slotDone() override;
69 void slotAdvance(const ItemInfo&, const QImage&, const QStringList&);
70
71private:
72
73 class Private;
74 Private* const d = nullptr;
75};
76
77} // namespace Digikam
Definition autotagsassignment.h:35
AutotagsAssignmentScanMode
Definition autotagsassignment.h:41
@ NonAssignedItems
Scan only items with no tags assigned.
Definition autotagsassignment.h:43
@ AllItems
Clean all tags already assigned and re-scan all items.
Definition autotagsassignment.h:42
~AutotagsAssignment() override
Definition autotagsassignment.cpp:81
void setUseMultiCoreCPU(bool b) override
Definition autotagsassignment.cpp:86
Definition iteminfo.h:68
Definition maintenancetool.h:31
Definition progressmanager.h:35
ProgressItem * parent() const
Definition progressmanager.cpp:283
Definition datefolderview.cpp:34
QList< Album * > AlbumList
Definition album.h:41