File indexing completed on 2025-01-05 03:51:29

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2010-09-18
0007  * Description : lens auto-fix batch tool.
0008  *
0009  * SPDX-FileCopyrightText: 2010-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_BQM_LENS_AUTO_FIX_H
0016 #define DIGIKAM_BQM_LENS_AUTO_FIX_H
0017 
0018 #include "batchtool.h"
0019 
0020 using namespace Digikam;
0021 
0022 namespace DigikamBqmLensAutoFixPlugin
0023 {
0024 
0025 class LensAutoFix : public BatchTool
0026 {
0027     Q_OBJECT
0028 
0029 public:
0030 
0031     explicit LensAutoFix(QObject* const parent = nullptr);
0032     ~LensAutoFix()                                          override;
0033 
0034     BatchToolSettings defaultSettings()                     override;
0035 
0036     BatchTool* clone(QObject* const parent = nullptr) const override;
0037 
0038     void registerSettingsWidget()                           override;
0039 
0040 private:
0041 
0042     bool toolOperations()                                   override;
0043 
0044 private Q_SLOTS:
0045 
0046     void slotAssignSettings2Widget()                        override;
0047     void slotSettingsChanged()                              override;
0048 
0049 private:
0050 
0051     class Private;
0052     Private* const d;
0053 };
0054 
0055 } // namespace DigikamBqmLensAutoFixPlugin
0056 
0057 #endif // DIGIKAM_BQM_LENS_AUTO_FIX_H