File indexing completed on 2025-01-19 03:59:31

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2012-01-30
0007  * Description : maintenance dialog
0008  *
0009  * SPDX-FileCopyrightText: 2012-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #ifndef DIGIKAM_MAINTENANCE_DLG_H
0016 #define DIGIKAM_MAINTENANCE_DLG_H
0017 
0018 // Qt includes
0019 
0020 #include <QDialog>
0021 
0022 // Local includes
0023 
0024 #include "digikam_export.h"
0025 #include "maintenancesettings.h"
0026 
0027 namespace Digikam
0028 {
0029 
0030 class MaintenanceDlg : public QDialog
0031 {
0032     Q_OBJECT
0033 
0034 public:
0035 
0036     explicit MaintenanceDlg(QWidget* const parent = nullptr);
0037     ~MaintenanceDlg() override;
0038 
0039     MaintenanceSettings settings() const;
0040 
0041 private Q_SLOTS:
0042 
0043     void slotItemToggled(int index, bool b);
0044     void slotUseLastSettings(bool checked);
0045     void slotMetadataSetup();
0046     void slotQualitySetup();
0047     void slotOk();
0048     void slotHelp();
0049 
0050 private:
0051 
0052     void writeSettings();
0053     void readSettings();
0054 
0055 private:
0056 
0057     class Private;
0058     Private* const d;
0059 };
0060 
0061 } // namespace Digikam
0062 
0063 #endif // DIGIKAM_MAINTENANCE_DLG_H