1 | /* |
2 | This file is part of the KDE project |
3 | SPDX-FileCopyrightText: 2025 Méven Car <meven@kde.org> |
4 | |
5 | SPDX-License-Identifier: GPL-2.0-or-later |
6 | */ |
7 | |
8 | #ifndef DROPINTONEWFOLDERPLUGIN_H |
9 | #define DROPINTONEWFOLDERPLUGIN_H |
10 | |
11 | #include <KIO/DndPopupMenuPlugin> |
12 | |
13 | #include <QUrl> |
14 | |
15 | class DropIntoNewFolderPlugin : public KIO::DndPopupMenuPlugin |
16 | { |
17 | Q_OBJECT |
18 | |
19 | public: |
20 | DropIntoNewFolderPlugin(QObject *parent, const QVariantList &); |
21 | |
22 | QList<QAction *> setup(const KFileItemListProperties &fileItemProps, const QUrl &destination) override; |
23 | |
24 | private Q_SLOTS: |
25 | void slotTriggered(); |
26 | |
27 | private: |
28 | QUrl m_dest; |
29 | QList<QUrl> m_urls; |
30 | }; |
31 | |
32 | #endif /* DROPINTONEWFOLDERPLUGIN_H */ |
33 | |