digiKam
timeadjustdialog.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 : 2004-05-16
7  * Description : dialog to set time stamp of picture files.
8  *
9  * Copyright (C) 2012 by Smit Mehta <smit dot meh at gmail dot com>
10  * Copyright (C) 2003-2005 by Jesper Pedersen <blackie at kde dot org>
11  * Copyright (C) 2006-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
12  * Copyright (c) 2018-2021 by Maik Qualmann <metzpinguin at gmail dot com>
13  *
14  * This program is free software; you can redistribute it
15  * and/or modify it under the terms of the GNU General
16  * Public License as published by the Free Software Foundation;
17  * either version 2, or (at your option) any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU General Public License for more details.
23  *
24  * ============================================================ */
25 
26 #ifndef DIGIKAM_TIME_ADJUST_DIALOG_H
27 #define DIGIKAM_TIME_ADJUST_DIALOG_H
28 
29 // Qt includes
30 
31 #include <QUrl>
32 
33 // Local includes
34 
35 #include "dplugindialog.h"
36 #include "timeadjustsettings.h"
37 #include "dinfointerface.h"
38 
39 using namespace Digikam;
40 
42 {
43 
45 {
46  Q_OBJECT
47 
48 public:
49 
50  explicit TimeAdjustDialog(QWidget* const parent, DInfoInterface* const iface);
51  ~TimeAdjustDialog() override;
52 
53 private Q_SLOTS:
54 
55  void setBusy(bool);
56  void slotCancelThread();
57  void slotThreadFinished();
58  void slotDialogFinished();
59  void slotProcessStarted(const QUrl&);
60  void slotPreviewReady(const QUrl&, const QDateTime&, const QDateTime&);
61  void slotProcessEnded(const QUrl&, const QDateTime&, const QDateTime&, int);
62 
63  void slotPreviewTimestamps();
64  void slotUpdateTimestamps();
65 
66  void slotPreviewTimer();
67  void slotUpdateTimer();
68 
69 private:
70 
71  void readSettings();
72  void saveSettings();
73 
74 protected:
75 
76  void closeEvent(QCloseEvent*) override;
77 
78 private:
79 
80  class Private;
81  Private* const d;
82 };
83 
84 } // namespace DigikamGenericTimeAdjustPlugin
85 
86 #endif // DIGIKAM_TIME_ADJUST_DIALOG_H
Definition: timeadjustdialog.h:45
Definition: dinfointerface.h:56
Definition: dplugindialog.h:42
Definition: timeadjustdialog.cpp:73
Definition: datefolderview.cpp:43