#define DRAGANDDROPHELPER_H
#include "dolphin_export.h"
+
#include <QList>
#include <QUrl>
-
class QDropEvent;
class QWidget;
namespace KIO { class DropJob; }
* @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