File indexing completed on 2025-01-19 03:51:25
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2007-10-24 0007 * Description : XMP origin settings page. 0008 * 0009 * SPDX-FileCopyrightText: 2007-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_XMP_ORIGIN_H 0016 #define DIGIKAM_XMP_ORIGIN_H 0017 0018 // Qt includes 0019 0020 #include <QWidget> 0021 #include <QDateTime> 0022 0023 // Local includes 0024 0025 #include "dmetadata.h" 0026 #include "metadataeditpage.h" 0027 0028 using namespace Digikam; 0029 0030 namespace DigikamGenericMetadataEditPlugin 0031 { 0032 0033 class XMPOrigin : public MetadataEditPage 0034 { 0035 Q_OBJECT 0036 0037 public: 0038 0039 explicit XMPOrigin(QWidget* const parent); 0040 ~XMPOrigin() override; 0041 0042 void applyMetadata(const DMetadata& meta); 0043 void readMetadata(const DMetadata& meta); 0044 0045 bool syncEXIFDateIsChecked() const; 0046 0047 void setCheckedSyncEXIFDate(bool c); 0048 0049 QDateTime getXMPCreationDate() const; 0050 0051 Q_SIGNALS: 0052 0053 void signalModified(); 0054 0055 private Q_SLOTS: 0056 0057 void slotSetTodayVideo(); 0058 void slotSetTodayCreated(); 0059 void slotSetTodayDigitalized(); 0060 0061 private: 0062 0063 class Private; 0064 Private* const d; 0065 }; 0066 0067 } // namespace DigikamGenericMetadataEditPlugin 0068 0069 #endif // DIGIKAM_XMP_ORIGIN_H