| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "iprofilepartprovider.h" |
| 7 | #include <memory> |
| 8 | |
| 9 | class ISysModel; |
| 10 | class IProfile; |
| 11 | |
| 12 | class ProfileFactory final |
| 13 | { |
| 14 | public: |
| 15 | ProfileFactory( |
| 16 | std::unique_ptr<IProfilePartProvider> &&profilePartProvider) noexcept; |
| 17 | |
| 18 | std::unique_ptr<IProfile> build(ISysModel const &sysModel) const; |
| 19 | |
| 20 | private: |
| 21 | std::unique_ptr<IProfilePartProvider> profilePartProvider_; |
| 22 | }; |