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

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