| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "iprofilepartview.h" |
| 7 | #include <memory> |
| 8 | #include <string> |
| 9 | |
| 10 | class IProfilePart; |
| 11 | |
| 12 | class ProfilePartView final : public IProfilePartView |
| 13 | { |
| 14 | public: |
| 15 | ProfilePartView(std::string const &profile, |
| 16 | std::shared_ptr<IProfilePart> part) noexcept; |
| 17 | |
| 18 | std::string const &profile() const override; |
| 19 | std::shared_ptr<IProfilePart> const &part() const override; |
| 20 | |
| 21 | private: |
| 22 | std::string profile_; |
| 23 | std::shared_ptr<IProfilePart> part_; |
| 24 | }; |