-
- /**
- * When updateDropAction() is called with a remote URL, we create a StatJob to
- * check if the destination is a directory or a desktop file. We cache the result
- * here to avoid doing the stat again on subsequent calls to updateDropAction().
- */
- KFileItem m_destItemCache;
-
- /**
- * Only keep the cache for 30 seconds, because the stat of the destUrl might change.
- */
- QTimer m_destItemCacheInvalidationTimer;
-
- /**
- * A StatJob on-fly to fill the cache for a remote URL. We shouldn't create more
- * than one StatJob at a time, so we keep a pointer to the current one.
- */
- KIO::StatJob *m_statJob = nullptr;
-
- /**
- * The URL for which the StatJob is running.
- * Note: We can't use m_statJob->url() because StatJob might resolve the URL to be
- * different from what we passed into stat(). E.g. "mtp:<bus-name>" is resolved
- * to "mtp:<phone name>"
- */
- QUrl m_statJobUrl;
-
- /**
- * The last event we received in updateDropAction(), but can't react to yet,
- * because a StatJob is on-fly.
- */
- QDropEvent *m_lastUndecidedEvent = nullptr;