File indexing completed on 2025-01-05 03:56:32

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 28/08/2021
0007  * Description : Writer of focus points to exiftool data
0008  *
0009  * SPDX-FileCopyrightText: 2021-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  * SPDX-FileCopyrightText: 2021 by Phuoc Khanh Le <phuockhanhnk94 at gmail dot com>
0011  *
0012  * SPDX-License-Identifier: GPL-2.0-or-later
0013  *
0014  * ============================================================ */
0015 
0016 #ifndef DIGIKAM_FOCUSPOINTS_WRITER_H
0017 #define DIGIKAM_FOCUSPOINTS_WRITER_H
0018 
0019 // Qt includes
0020 
0021 #include <QObject>
0022 #include <QVariant>
0023 #include <QStringList>
0024 
0025 // Local includes
0026 
0027 #include "digikam_export.h"
0028 #include "focuspoint.h"
0029 
0030 namespace Digikam
0031 {
0032 
0033 class DIGIKAM_EXPORT FocusPointsWriter : public QObject
0034 {
0035     Q_OBJECT
0036 
0037 public:
0038 
0039     explicit FocusPointsWriter(QObject* const parent, const QString& path);
0040     ~FocusPointsWriter();
0041 
0042 public:
0043 
0044     void writeFocusPoint(const FocusPoint& point);
0045     void writeFocusPoint(const QRectF& rectF);
0046 
0047 private:
0048 
0049     class Private;
0050     Private* const d;
0051 };
0052 
0053 } // namespace Digikam
0054 
0055 #endif // DIGIKAM_FOCUSPOINTS_WRITER_H