]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/draganddrophelper.h
[Places Panel] Support drag and drop from Ark
[dolphin.git] / src / views / draganddrophelper.h
index 5f9d3754b9aa5bdc61d451868feacb25f23eeb7d..19a30404e727a54c36787463a71cc8ce0b75c612 100644 (file)
 #include "dolphin_export.h"
 
 #include <QList>
+#include <QString>
 #include <QUrl>
 
 class QDropEvent;
+class QMimeData;
 class QWidget;
 namespace KIO { class DropJob; }
 
@@ -42,6 +44,13 @@ public:
      */
     static bool urlListMatchesUrl(const QList<QUrl>& 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.
      */