Debian Codegraph @

core/utilities/facemanagement/backgroundprocesses/facebackgroundrecognition.h

raw
1 /* ============================================================
2 *
3 * This file is a part of digiKam project
4 * https://www.digikam.org
5 *
6 * Date : 2025-03-30
7 * Description : Face Background Recognition Controller
8 *
9 * SPDX-FileCopyrightText: 2024-2026 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 * SPDX-FileCopyrightText: 2024-2025 by Michael Miller <michael underscore miller at msn dot com>
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 *
14 * ============================================================ */
15
16 #pragma once
17
18 // Qt includes
19
20 #include <QObject>
21
22 // Local includes
23
24 #include "digikam_export.h"
25
26 namespace Digikam
27 {
28
29 class DIGIKAM_GUI_EXPORT FaceRecognitionBackgroundController : public QObject
30 {
31 Q_OBJECT
32
33 public:
34
35 FaceRecognitionBackgroundController();
36 ~FaceRecognitionBackgroundController() override;
37
38 static FaceRecognitionBackgroundController* instance();
39
40 void stop();
41 bool waitForDone();
42
43 private Q_SLOTS:
44
45 void slotSetEnabled(bool enabled);
46 bool slotRescan();
47 void slotScanDone();
48
49 private:
50
51 /// @note disabled
52 explicit FaceRecognitionBackgroundController(QObject*) = delete;
53 FaceRecognitionBackgroundController(const FaceRecognitionBackgroundController&) = delete;
54
55 private:
56
57 class Private;
58 Private* const d = nullptr;
59 };
60
61 } // namespace Digikam