]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/draganddrophelper.h
Merge branch 'Applications/18.04'
[dolphin.git] / src / views / draganddrophelper.h
index e47f83ca83ce4aa309bd2c3200ce74d8239ab975..1a6b5900eb92b08f7c86650016d554778d2e7da4 100644 (file)
 #define DRAGANDDROPHELPER_H
 
 #include "dolphin_export.h"
+
 #include <QList>
 #include <QUrl>
 
-
 class QDropEvent;
 class QWidget;
 namespace KIO { class DropJob; }
@@ -54,6 +54,16 @@ public:
      * @return True if destUrl is contained in the urls parameter.
      */
     static bool urlListMatchesUrl(const QList<QUrl>& urls, const QUrl& destUrl);
+
+    /**
+     * clear the internal cache.
+     */
+    static void clearUrlListMatchesUrlCache();
+private:
+    /**
+     * Stores the results of the expensive checks made in urlListMatchesUrl.
+     */
+    static QHash<QUrl, bool> m_urlListMatchesUrlCache;
 };
 
 #endif