digiKam
dngconverterlist.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of kipi-plugins project
4  * https://www.digikam.org
5  *
6  * Date : 2008-09-24
7  * Description : file list view and items.
8  *
9  * Copyright (C) 2008-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_DNG_CONVERTER_LIST_H
24 #define DIGIKAM_DNG_CONVERTER_LIST_H
25 
26 // Qt includes
27 
28 #include <QUrl>
29 
30 // Local includes
31 
32 #include "ditemslist.h"
33 
34 using namespace Digikam;
35 
37 {
38 
40 {
41  Q_OBJECT
42 
43 public:
44 
48  enum FieldType
49  {
50  TARGETFILENAME = DItemsListView::User1,
51  IDENTIFICATION = DItemsListView::User2,
52  STATUS = DItemsListView::User3
53  };
54 
55 public:
56 
57  explicit DNGConverterList(QWidget* const parent = nullptr);
59 
60 public Q_SLOTS:
61 
62  void slotAddImages(const QList<QUrl>& list) override;
63 
64 protected Q_SLOTS:
65 
66  void slotRemoveItems() override;
67 };
68 
69 // -------------------------------------------------------------------------
70 
72 {
73 
74 public:
75 
76  DNGConverterListViewItem(DItemsListView* const view, const QUrl& url);
78 
79  void setDestFileName(const QString& str);
80  QString destFileName() const;
81 
82  void setIdentity(const QString& str);
83  QString identity() const;
84 
85  void setStatus(const QString& str);
86 
87  QString destPath() const;
88 
89 private:
90 
91  class Private;
92  Private* const d;
93 };
94 
95 } // namespace DigikamGenericDNGConverterPlugin
96 
97 #endif // DIGIKAM_DNG_CONVERTER_LIST_H
FieldType
Definition: dngconverterlist.h:49
Definition: ditemslist.h:59
Definition: ditemslist.h:128
@ User3
Definition: ditemslist.h:139
@ User1
Definition: ditemslist.h:137
@ User2
Definition: ditemslist.h:138
Definition: ditemslist.h:196
Definition: dngconverteractions.h:40
Definition: datefolderview.cpp:43