File indexing completed on 2025-01-19 03:51:29
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2008-09-24 0007 * Description : file list view and items. 0008 * 0009 * SPDX-FileCopyrightText: 2008-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_DNG_CONVERTER_LIST_H 0016 #define DIGIKAM_DNG_CONVERTER_LIST_H 0017 0018 // Qt includes 0019 0020 #include <QUrl> 0021 0022 // Local includes 0023 0024 #include "ditemslist.h" 0025 0026 using namespace Digikam; 0027 0028 namespace DigikamGenericDNGConverterPlugin 0029 { 0030 0031 class DNGConverterList : public DItemsList 0032 { 0033 Q_OBJECT 0034 0035 public: 0036 0037 /** 0038 * List the different columns in a list. 0039 */ 0040 enum FieldType 0041 { 0042 TARGETFILENAME = DItemsListView::User1, 0043 IDENTIFICATION = DItemsListView::User2, 0044 STATUS = DItemsListView::User3 0045 }; 0046 0047 public: 0048 0049 explicit DNGConverterList(QWidget* const parent = nullptr); 0050 ~DNGConverterList(); 0051 0052 public Q_SLOTS: 0053 0054 void slotAddImages(const QList<QUrl>& list) override; 0055 0056 protected Q_SLOTS: 0057 0058 void slotRemoveItems() override; 0059 }; 0060 0061 // ------------------------------------------------------------------------- 0062 0063 class DNGConverterListViewItem : public DItemsListViewItem 0064 { 0065 0066 public: 0067 0068 DNGConverterListViewItem(DItemsListView* const view, const QUrl& url); 0069 ~DNGConverterListViewItem(); 0070 0071 void setDestFileName(const QString& str); 0072 QString destFileName() const; 0073 0074 void setIdentity(const QString& str); 0075 QString identity() const; 0076 0077 void setStatus(const QString& str); 0078 0079 QString destPath() const; 0080 0081 private: 0082 0083 class Private; 0084 Private* const d; 0085 }; 0086 0087 } // namespace DigikamGenericDNGConverterPlugin 0088 0089 #endif // DIGIKAM_DNG_CONVERTER_LIST_H