31 std::optional<TimeVal> duration;
45 std::vector<ProcessDrop>& drops,
const QMimeData& mime,
49 std::vector<ProcessDrop>& drops,
const QMimeData& mime,
const QString& fmt,
53 std::vector<ProcessDrop>& drops,
const QMimeData& mime,
56 virtual QSet<QString> mimeTypes() const noexcept;
57 virtual QSet<QString> fileExtensions() const noexcept;
60 virtual
void dropCustom(
62 const
score::DocumentContext& ctx) const noexcept;
64 virtual
void dropPath(
66 const
score::DocumentContext& ctx) const noexcept;
68 virtual
void dropData(
70 const
score::DocumentContext& ctx) const noexcept;
79 std::vector<ProcessDropHandler::ProcessDrop>
82 static std::optional<TimeVal>
83 getMaxDuration(
const std::vector<ProcessDropHandler::ProcessDrop>&);
86 void initCaches()
const;
87 mutable ossia::hash_map<std::string, ProcessDropHandler*> m_perMimeTypes{};
88 mutable ossia::hash_map<std::string, ProcessDropHandler*> m_perFileExtension{};
89 mutable std::size_t m_lastCacheSize{};
Definition DocumentContext.hpp:18