From 0c7f7c92ed961ce46a7b42aeeb1c30070c95ae17 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Thu, 7 Apr 2022 21:41:43 +0200 Subject: [Places Panel] Support drag and drop from Ark Accepts Ark's special dnd mime types so that archive contents can be dragged onto a place to extract and/or (mount and) switch to the hovered location. --- src/views/draganddrophelper.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/views/draganddrophelper.h') diff --git a/src/views/draganddrophelper.h b/src/views/draganddrophelper.h index 5f9d3754b..19a30404e 100644 --- a/src/views/draganddrophelper.h +++ b/src/views/draganddrophelper.h @@ -11,9 +11,11 @@ #include "dolphin_export.h" #include +#include #include class QDropEvent; +class QMimeData; class QWidget; namespace KIO { class DropJob; } @@ -42,6 +44,13 @@ public: */ static bool urlListMatchesUrl(const QList& urls, const QUrl& destUrl); + /** + * @return True if mimeData contains Ark's drag and drop mime types. + */ + static bool isArkDndMimeType(const QMimeData *mimeData); + static QString arkDndServiceMimeType() { return QStringLiteral("application/x-kde-ark-dndextract-service"); } + static QString arkDndPathMimeType() { return QStringLiteral("application/x-kde-ark-dndextract-path"); } + /** * clear the internal cache. */ -- cgit v1.3.1