// SPDX-License-Identifier: GPL-3.0-or-later // Copyright 2019 Juan Palacios #pragma once #include "core/info/vendor.h" #include #include #include #include #include #include class IHelperControl; class ISysModelSyncer; class ISession; class IUIFactory; class CoreFactory final { public: struct Components { std::unique_ptr helperControl; std::shared_ptr sysSyncer; std::unique_ptr session; std::unique_ptr uiFactory; }; CoreFactory() noexcept; std::optional build(std::string &&appName, bool logCommands, bool logProfileStack) const; private: std::tuple standardDirectories() const; void createAppDirectories(std::string const &appDirectory, std::filesystem::path const &config, std::filesystem::path const &cache) const; std::vector gpuVendors_; };