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