| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "../iswinfo.h" |
| 7 | #include "core/idatasource.h" |
| 8 | #include <memory> |
| 9 | #include <string> |
| 10 | |
| 11 | class SWInfoKernel final : public ISWInfo::IProvider |
| 12 | { |
| 13 | public: |
| 14 | SWInfoKernel(std::unique_ptr<IDataSource<std::string>> &&dataSource) noexcept; |
| 15 | |
| 16 | std::vector<std::pair<std::string, std::string>> provideInfo() const override; |
| 17 | |
| 18 | private: |
| 19 | std::unique_ptr<IDataSource<std::string>> const dataSource_; |
| 20 | static bool const registered_; |
| 21 | }; |