File indexing completed on 2025-01-19 03:51:26
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2012-17-04 0007 * Description : time adjust images list. 0008 * 0009 * SPDX-FileCopyrightText: 2012 by Smit Mehta <smit dot meh at gmail dot com> 0010 * SPDX-FileCopyrightText: 2012-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0011 * SPDX-FileCopyrightText: 2018-2021 by Maik Qualmann <metzpinguin at gmail dot com> 0012 * 0013 * SPDX-License-Identifier: GPL-2.0-or-later 0014 * 0015 * ============================================================ */ 0016 0017 #ifndef DIGIKAM_TIME_ADJUST_LIST_H 0018 #define DIGIKAM_TIME_ADJUST_LIST_H 0019 0020 // Qt includes 0021 0022 #include <QDateTime> 0023 #include <QMap> 0024 #include <QUrl> 0025 0026 // Local includes 0027 0028 #include "ditemslist.h" 0029 #include "timeadjustsettings.h" 0030 0031 using namespace Digikam; 0032 0033 namespace DigikamGenericTimeAdjustPlugin 0034 { 0035 0036 class TimeAdjustList : public DItemsList 0037 { 0038 Q_OBJECT 0039 0040 public: 0041 0042 /* The different columns in a list. */ 0043 enum FieldType 0044 { 0045 TIMESTAMP_USED = DItemsListView::User1, 0046 TIMESTAMP_UPDATED = DItemsListView::User2, 0047 STATUS = DItemsListView::User3 0048 }; 0049 0050 enum ProcessingStatus 0051 { 0052 CLRSTATUS_ERROR = 1 << 0, 0053 NOPROCESS_ERROR = 1 << 1, 0054 META_TIME_ERROR = 1 << 2, 0055 FILE_TIME_ERROR = 1 << 3 0056 }; 0057 0058 public: 0059 0060 explicit TimeAdjustList(QWidget* const parent); 0061 ~TimeAdjustList() override; 0062 0063 void setStatus(const QUrl& url, 0064 const QDateTime&, 0065 const QDateTime&, 0066 int status = CLRSTATUS_ERROR); 0067 0068 void setWaitStatus(); 0069 }; 0070 0071 } // namespace DigikamGenericTimeAdjustPlugin 0072 0073 #endif // DIGIKAM_TIME_ADJUST_LIST_H