File indexing completed on 2025-01-19 03:51:21
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2006-10-18 0007 * Description : EXIF date and time settings page. 0008 * 0009 * SPDX-FileCopyrightText: 2006-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_EXIF_DATETIME_H 0016 #define DIGIKAM_EXIF_DATETIME_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 EXIFDateTime : public MetadataEditPage 0034 { 0035 Q_OBJECT 0036 0037 public: 0038 0039 explicit EXIFDateTime(QWidget* const parent); 0040 ~EXIFDateTime() override; 0041 0042 void applyMetadata(const DMetadata& meta); 0043 void readMetadata(const DMetadata& meta); 0044 0045 bool syncXMPDateIsChecked() const; 0046 bool syncIPTCDateIsChecked() const; 0047 0048 void setCheckedSyncXMPDate(bool c); 0049 void setCheckedSyncIPTCDate(bool c); 0050 0051 QDateTime getEXIFCreationDate() const; 0052 0053 Q_SIGNALS: 0054 0055 void signalModified(); 0056 0057 private Q_SLOTS: 0058 0059 void slotSetTodayCreated(); 0060 void slotSetTodayOriginal(); 0061 void slotSetTodayDigitalized(); 0062 0063 private: 0064 0065 class Private; 0066 Private* const d; 0067 }; 0068 0069 } // namespace DigikamGenericMetadataEditPlugin 0070 0071 #endif // DIGIKAM_EXIF_DATETIME_H