2#include <Process/ProcessFactory.hpp>
3#include <Process/ProcessMimeSerialization.hpp>
5#include <score/tools/File.hpp>
15#include <score_plugin_library_export.h>
19struct ApplicationContext;
34 std::vector<StagedNode> children;
41 Process::ProcessModelFactory::ConcreteKey rootKey;
42 QStringList categoryPath;
50inline QStringList categoryPathForFile(
52 std::string_view presetsPath)
noexcept
54 if(file.absolutePath == packagesRoot || file.absolutePath.ends_with(presetsPath))
56 return {QString::fromUtf8(file.parentDirName.data(), file.parentDirName.size())};
68 std::string packagesRoot;
79 return categoryPathForFile(file, p->packagesRoot, p->presets);
84 std::shared_ptr<const Paths>
get() const noexcept
86 std::lock_guard lock{m_mutex};
91 mutable std::mutex m_mutex;
92 std::shared_ptr<const Paths> m_paths;
Definition ProcessEntry.hpp:64
std::shared_ptr< const Paths > get() const noexcept
Worker thread: the raw paths, for handlers with custom category logic.
Definition ProcessEntry.hpp:84
QStringList operator()(const score::PathInfo &file) const noexcept
Worker thread: category path for a scanned file.
Definition ProcessEntry.hpp:76
Base toolkit upon which the software is built.
Definition Application.cpp:116
Definition ProcessEntry.hpp:67
Definition ProcessEntry.hpp:25
Definition ProcessEntry.hpp:40
Definition ProcessEntry.hpp:32
Definition ProcessMimeSerialization.hpp:38
Used to access all the application-wide state and structures.
Definition ApplicationContext.hpp:25
Definition lib/score/tools/File.hpp:20