File indexing completed on 2025-01-19 03:51:24

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2006-10-15
0007  * Description : IPTC subjects settings page.
0008  *
0009  * SPDX-FileCopyrightText: 2006-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  * SPDX-FileCopyrightText: 2009      by Andi Clemens <andi dot clemens at googlemail dot com>
0011  *
0012  * SPDX-License-Identifier: GPL-2.0-or-later
0013  *
0014  * ============================================================ */
0015 
0016 #ifndef DIGIKAM_IPTC_SUBJECTS_H
0017 #define DIGIKAM_IPTC_SUBJECTS_H
0018 
0019 // Qt includes
0020 
0021 #include <QWidget>
0022 #include <QByteArray>
0023 
0024 // Local includes
0025 
0026 #include "subjectwidget.h"
0027 #include "dmetadata.h"
0028 
0029 using namespace Digikam;
0030 
0031 namespace DigikamGenericMetadataEditPlugin
0032 {
0033 
0034 class IPTCSubjects : public SubjectWidget
0035 {
0036     Q_OBJECT
0037 
0038 public:
0039 
0040     explicit IPTCSubjects(QWidget* const parent);
0041     ~IPTCSubjects() override;
0042 
0043     void applyMetadata(const DMetadata& meta);
0044     void readMetadata(const DMetadata& meta);
0045 
0046 private Q_SLOTS:
0047 
0048     void slotLineEditModified();
0049 };
0050 
0051 } // namespace DigikamGenericMetadataEditPlugin
0052 
0053 #endif // DIGIKAM_IPTC_SUBJECTS_H