digiKam
timeadjustlist.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 : 2012-17-04
7  * Description : time adjust images list.
8  *
9  * Copyright (C) 2012 by Smit Mehta <smit dot meh at gmail dot com>
10  * Copyright (C) 2012-2015 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  * Copyright (c) 2018-2021 by Maik Qualmann <metzpinguin at gmail dot com>
12  *
13  * This program is free software; you can redistribute it
14  * and/or modify it under the terms of the GNU General
15  * Public License as published by the Free Software Foundation;
16  * either version 2, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_TIME_ADJUST_LIST_H
26 #define DIGIKAM_TIME_ADJUST_LIST_H
27 
28 // Qt includes
29 
30 #include <QDateTime>
31 #include <QMap>
32 #include <QUrl>
33 
34 // Local includes
35 
36 #include "ditemslist.h"
37 #include "timeadjustsettings.h"
38 
39 using namespace Digikam;
40 
42 {
43 
44 class TimeAdjustList : public DItemsList
45 {
46  Q_OBJECT
47 
48 public:
49 
50  /* The different columns in a list. */
51  enum FieldType
52  {
53  TIMESTAMP_USED = DItemsListView::User1,
54  TIMESTAMP_UPDATED = DItemsListView::User2,
55  STATUS = DItemsListView::User3
56  };
57 
59  {
60  CLRSTATUS_ERROR = 1 << 0,
61  NOPROCESS_ERROR = 1 << 1,
62  META_TIME_ERROR = 1 << 2,
63  FILE_TIME_ERROR = 1 << 3
64  };
65 
66 public:
67 
68  explicit TimeAdjustList(QWidget* const parent);
69  ~TimeAdjustList() override;
70 
71  void setStatus(const QUrl& url,
72  const QDateTime&,
73  const QDateTime&,
74  int status = CLRSTATUS_ERROR);
75 
76  void setWaitStatus();
77 };
78 
79 } // namespace DigikamGenericTimeAdjustPlugin
80 
81 #endif // DIGIKAM_TIME_ADJUST_LIST_H
Definition: timeadjustlist.h:45
ProcessingStatus
Definition: timeadjustlist.h:59
FieldType
Definition: timeadjustlist.h:52
@ User3
Definition: ditemslist.h:139
@ User1
Definition: ditemslist.h:137
@ User2
Definition: ditemslist.h:138
Definition: ditemslist.h:196
Definition: timeadjustdialog.cpp:73
Definition: datefolderview.cpp:43