digiKam
exifdatetime.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2006-10-18
7  * Description : EXIF date and time settings page.
8  *
9  * Copyright (C) 2006-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * ============================================================ */
22 
23 #ifndef DIGIKAM_EXIF_DATETIME_H
24 #define DIGIKAM_EXIF_DATETIME_H
25 
26 // Qt includes
27 
28 #include <QWidget>
29 #include <QDateTime>
30 
31 // Local includes
32 
33 #include "dmetadata.h"
34 
35 using namespace Digikam;
36 
38 {
39 
40 class EXIFDateTime : public QWidget
41 {
42  Q_OBJECT
43 
44 public:
45 
46  explicit EXIFDateTime(QWidget* const parent);
47  ~EXIFDateTime() override;
48 
49  void applyMetadata(const DMetadata& meta);
50  void readMetadata(const DMetadata& meta);
51 
52  bool syncXMPDateIsChecked() const;
53  bool syncIPTCDateIsChecked() const;
54 
55  void setCheckedSyncXMPDate(bool c);
56  void setCheckedSyncIPTCDate(bool c);
57 
58  QDateTime getEXIFCreationDate() const;
59 
60 Q_SIGNALS:
61 
63 
64 private Q_SLOTS:
65 
66  void slotSetTodayCreated();
67  void slotSetTodayOriginal();
68  void slotSetTodayDigitalized();
69 
70 private:
71 
72  class Private;
73  Private* const d;
74 };
75 
76 } // namespace DigikamGenericMetadataEditPlugin
77 
78 #endif // DIGIKAM_EXIF_DATETIME_H
Definition: dmetadata.h:55
Definition: altlangstringedit.cpp:39
Definition: datefolderview.cpp:43