| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include <functional> |
| 7 | #include <memory> |
| 8 | #include <optional> |
| 9 | |
| 10 | class Exportable; |
| 11 | class IProfileView; |
| 12 | |
| 13 | class IProfileViewFactory |
| 14 | { |
| 15 | public: |
| 16 | virtual std::unique_ptr<IProfileView> |
| 17 | build(Exportable const &profile, |
| 18 | std::optional<std::reference_wrapper<IProfileView>> base = |
| 19 | std::nullopt) const = 0; |
| 20 | |
| 21 | virtual ~IProfileViewFactory() = default; |
| 22 | }; |