Debian Codegraph @

core/utilities/maintenance/tools/fingerprints/fingerprintsgenerator.h

raw symbols SCIP
1 /* ============================================================
2 *
3 * This file is a part of digiKam project
4 * https://www.digikam.org
5 *
6 * Date : 2008-05-16
7 * Description : finger-prints generator
8 *
9 * SPDX-FileCopyrightText: 2008-2026 by Gilles Caulier <caulier dot gilles 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"
25
26 class QImage;
27
28 namespace Digikam
29 {
30
31 class ItemInfo;
32
33 class FingerPrintsGenerator : public MaintenanceTool
34 {
35 Q_OBJECT
36
37 public:
38
39 /**
40 * @brief Constructor using AlbumList as argument. If list is empty, whole Albums collection is processed.
41 */
42 explicit FingerPrintsGenerator(const bool rebuildAll,
43 const AlbumList& list = AlbumList(),
44 ProgressItem* const parent = nullptr);
45 ~FingerPrintsGenerator() override;
46
47 void setUseMultiCoreCPU(bool b) override;
48
49 Q_SIGNALS:
50
51 void signalScanNotification(const QString& msg, int type);
52
53 private:
54
55 void processOne();
56 void calculateAffectedAlbums();
57
58 private Q_SLOTS:
59
60 void slotStart() override;
61 void slotDone() override; // cppcheck-suppress virtualCallInConstructor
62 void slotCancel() override;
63 void slotAffectedAlbumsFinished();
64 void slotAdvance(const ItemInfo&, const QImage&);
65
66 private:
67
68 class Private;
69 Private* const d = nullptr;
70 };
71
72 } // namespace Digikam