File indexing completed on 2024-04-28 15:40:12

0001 // SPDX-FileCopyrightText: 2003-2022 Jesper K. Pedersen <blackie@kde.org>
0002 //
0003 // SPDX-License-Identifier: GPL-2.0-or-later
0004 
0005 #ifndef DELETEDIALOG_H
0006 #define DELETEDIALOG_H
0007 #include <kpabase/FileNameList.h>
0008 
0009 #include <QDialog>
0010 #include <QLabel>
0011 #include <kjob.h>
0012 #include <qradiobutton.h>
0013 
0014 class QLabel;
0015 class QCheckBox;
0016 class KJob;
0017 namespace KIO
0018 {
0019 class Job;
0020 }
0021 namespace MainWindow
0022 {
0023 
0024 class DeleteDialog : public QDialog
0025 {
0026     Q_OBJECT
0027 
0028 public:
0029     explicit DeleteDialog(QWidget *parent);
0030     // prevent hiding of base class method:
0031     using QDialog::exec;
0032     int exec(const DB::FileNameList &list);
0033 
0034 protected Q_SLOTS:
0035     void deleteImages();
0036 
0037 private:
0038     DB::FileNameList m_list;
0039     QLabel *m_label;
0040     QRadioButton *m_deleteFile;
0041     QRadioButton *m_useTrash;
0042     QRadioButton *m_deleteFromDb;
0043 };
0044 }
0045 
0046 #endif /* DELETEDIALOG_H */
0047 
0048 // vi:expandtab:tabstop=4 shiftwidth=4: