File indexing completed on 2025-01-05 04:54:21

0001 /*
0002    SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 #pragma once
0007 
0008 #include <QDialog>
0009 #include <QListWidget>
0010 class KNotesIconViewItem;
0011 
0012 class KNotesSelectDeleteNotesListWidget : public QListWidget
0013 {
0014     Q_OBJECT
0015 public:
0016     explicit KNotesSelectDeleteNotesListWidget(QWidget *parent = nullptr);
0017     ~KNotesSelectDeleteNotesListWidget() override;
0018 
0019     void setItems(const QList<KNotesIconViewItem *> &items);
0020 };
0021 
0022 class KNotesSelectDeleteNotesDialog : public QDialog
0023 {
0024     Q_OBJECT
0025 public:
0026     explicit KNotesSelectDeleteNotesDialog(const QList<KNotesIconViewItem *> &items, QWidget *parent = nullptr);
0027     ~KNotesSelectDeleteNotesDialog() override;
0028 
0029 private:
0030     void writeConfig();
0031     void readConfig();
0032     KNotesSelectDeleteNotesListWidget *mSelectedListWidget = nullptr;
0033 };