File indexing completed on 2025-01-19 03:57:57

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2010-10-09
0007  * Description : Widget to choose options for face scanning
0008  *
0009  * SPDX-FileCopyrightText: 2010-2012 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
0010  * SPDX-FileCopyrightText: 2012-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0011  *
0012  * SPDX-License-Identifier: GPL-2.0-or-later
0013  *
0014  * ============================================================ */
0015 
0016 #ifndef DIGIKAM_FACE_SCAN_WIDGET_H
0017 #define DIGIKAM_FACE_SCAN_WIDGET_H
0018 
0019 // Qt includes
0020 
0021 #include <QTabWidget>
0022 
0023 // Local includes
0024 
0025 #include "statesavingobject.h"
0026 #include "facescansettings.h"
0027 
0028 namespace Digikam
0029 {
0030 
0031 class FaceScanWidget : public QTabWidget,
0032                        public StateSavingObject
0033 {
0034     Q_OBJECT
0035 
0036 public:
0037 
0038     explicit FaceScanWidget(QWidget* const parent = nullptr);
0039     ~FaceScanWidget()                 override;
0040 
0041     bool settingsConflicted()   const;
0042     FaceScanSettings settings() const;
0043 
0044 protected:
0045 
0046     void doLoadState()                override;
0047     void doSaveState()                override;
0048 
0049 private:
0050 
0051     void setupUi();
0052     void setupConnections();
0053 
0054 private Q_SLOTS:
0055 
0056     void slotPrepareForDetect(bool status);
0057     void slotPrepareForRecognize(bool status);
0058 
0059 private:
0060 
0061     class Private;
0062     Private* const d;
0063 };
0064 
0065 } // namespace Digikam
0066 
0067 #endif // DIGIKAM_FACE_SCAN_WIDGET_H