File indexing completed on 2025-01-05 04:54:20
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 <Akonadi/Item> 0009 #include <QDialog> 0010 class QPushButton; 0011 namespace NoteShared 0012 { 0013 class NoteListWidget; 0014 } 0015 0016 class KNoteDeleteSelectedNotesDialog : public QDialog 0017 { 0018 Q_OBJECT 0019 public: 0020 explicit KNoteDeleteSelectedNotesDialog(QWidget *parent = nullptr); 0021 ~KNoteDeleteSelectedNotesDialog() override; 0022 0023 void setNotes(const Akonadi::Item::List ¬es); 0024 0025 Akonadi::Item::List selectedNotes() const; 0026 0027 private Q_SLOTS: 0028 void slotDeleteNoteSelectionChanged(); 0029 0030 private: 0031 void readConfig(); 0032 void writeConfig(); 0033 NoteShared::NoteListWidget *mNoteList = nullptr; 0034 QPushButton *mOkButton = nullptr; 0035 };