digiKam
ftexportwindow.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_WINDOW_H
26 #define DIGIKAM_FT_EXPORT_WINDOW_H
27 
28 // Qt includes
29 
30 #include <QUrl>
31 
32 // Local includes
33 
34 #include "wstooldialog.h"
35 #include "dinfointerface.h"
36 
37 class KJob;
38 
39 namespace KIO
40 {
41  class Job;
42 }
43 
44 using namespace Digikam;
45 
47 {
48 
49 class FTExportWidget;
50 
56 {
57  Q_OBJECT
58 
59 public:
60 
66  explicit FTExportWindow(DInfoInterface* const iface, QWidget* const parent);
67 
71  ~FTExportWindow() override;
72 
77  void reactivate();
78 
79 private Q_SLOTS:
80 
84  void slotImageListChanged();
85 
89  void slotUpload();
90 
94  void slotTargetUrlChanged(const QUrl& target);
95 
99  void slotCopyingDone(KIO::Job* job, const QUrl& from, const QUrl& to,
100  const QDateTime& mtime, bool directory, bool renamed);
101 
106  void slotCopyingFinished(KJob* job);
107 
108  void slotFinished();
109 
110 protected:
111 
115  void closeEvent(QCloseEvent* e) override;
116 
121  void updateUploadButton();
122 
126  void restoreSettings();
127 
131  void saveSettings();
132 
133 private:
134 
135  class Private;
136  Private* const d;
137 };
138 
139 } // namespace DigikamGenericFileTransferPlugin
140 
141 #endif // DIGIKAM_FT_EXPORT_WINDOW_H
Definition: dinfointerface.h:56
Definition: wstooldialog.h:43
Definition: ftexportwidget.cpp:50
Definition: datefolderview.cpp:43