| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "info/vendor.h" |
| 7 | #include "isysexplorer.h" |
| 8 | #include <filesystem> |
| 9 | #include <vector> |
| 10 | |
| 11 | class SysExplorer final : public ISysExplorer |
| 12 | { |
| 13 | public: |
| 14 | SysExplorer(std::vector<Vendor> gpuVendors) noexcept; |
| 15 | |
| 16 | std::vector<std::string> renderers() override; |
| 17 | |
| 18 | private: |
| 19 | bool checkGPUVendor(std::filesystem::path sysPath) const; |
| 20 | |
| 21 | std::vector<Vendor> gpuVendors_; |
| 22 | }; |