digiKam
ftexportwidget.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 : 2009-09-28
7  * Description : a tool to export image to a KIO accessible
8  * location
9  *
10  * Copyright (C) 2006-2009 by Johannes Wienke <languitar at semipol dot de>
11  * Copyright (C) 2011-2022 by Gilles Caulier <caulier dot gilles 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_FT_EXPORT_WIDGET_H
26 #define DIGIKAM_FT_EXPORT_WIDGET_H
27 
28 // Qt includes
29 
30 #include <QWidget>
31 #include <QUrl>
32 #include <QList>
33 
34 // Local includes
35 
36 #include "dinfointerface.h"
37 #include "ditemslist.h"
38 
39 using namespace Digikam;
40 
42 {
43 
44 class FTExportWidget: public QWidget
45 {
46  Q_OBJECT
47 
48 public:
49 
55  explicit FTExportWidget(DInfoInterface* const iface, QWidget* const parent);
56 
60  ~FTExportWidget() override;
61 
65  DItemsList* imagesList() const;
66 
70  QUrl targetUrl() const;
71 
75  void setTargetUrl(const QUrl& url);
76 
77  QList<QUrl> history() const;
78  void setHistory(const QList<QUrl>& urls);
79 
80 private Q_SLOTS:
81 
82  void slotLabelUrlChanged();
83  void slotShowTargetDialogClicked(bool checked);
84 
85 Q_SIGNALS:
86 
87  void signalTargetUrlChanged(const QUrl& target);
88 
89 private:
90 
91  void updateTargetLabel();
92 
93 private:
94 
95  class Private;
96  Private* const d;
97 };
98 
99 } // namespace DigikamGenericFileTransferPlugin
100 
101 #endif // DIGIKAM_FT_EXPORT_WIDGET_H
Definition: dinfointerface.h:56
Definition: ditemslist.h:196
Definition: ftexportwidget.cpp:50
Definition: datefolderview.cpp:43