File indexing completed on 2024-11-03 04:33:39

0001 /*
0002  *   SPDX-FileCopyrightText: 2022 Méven Car <meven.car@kdemail.net>
0003  *
0004  *   SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005  */
0006 
0007 #ifndef FORGETFILEITEMACTION_H
0008 #define FORGETFILEITEMACTION_H
0009 
0010 #include <KAbstractFileItemActionPlugin>
0011 #include <KFileItemListProperties>
0012 
0013 class QAction;
0014 class QWidget;
0015 
0016 class ForgetFileItemAction : public KAbstractFileItemActionPlugin
0017 {
0018     Q_OBJECT
0019 
0020 public:
0021     explicit ForgetFileItemAction(QObject *parent, const QVariantList &args);
0022 
0023     QList<QAction *> actions(const KFileItemListProperties &fileItemInfos, QWidget *parentWidget) override;
0024 
0025 private:
0026     QAction *createAction(const QIcon &icon, const QString &name, QWidget *parent, const QList<QUrl> &urls, const QString &exec);
0027 };
0028 
0029 #endif // FORGETFILEITEMACTION_H