kodi
GPUInfoPosix.h
1 /*
2  * Copyright (C) 2023 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "utils/GpuInfo.h"
12 
13 class CGPUInfoPosix : public CGPUInfo
14 {
15 protected:
16  CGPUInfoPosix() = default;
17  virtual ~CGPUInfoPosix() = default;
18 
19  virtual bool SupportsCustomTemperatureCommand() const override;
20  virtual bool GetGPUTemperatureFromCommand(CTemperature& temperature,
21  const std::string& cmd) const override;
22 };
Definition: GPUInfoPosix.h:13
virtual bool GetGPUTemperatureFromCommand(CTemperature &temperature, const std::string &cmd) const override
Get the GPU temperature from a user provided command (advanced settings)
Definition: GPUInfoPosix.cpp:18
Class to concentrate all methods related to GPU information.
Definition: GpuInfo.h:19
virtual bool SupportsCustomTemperatureCommand() const override
Checks if the specific platform implementation supports obtaining the GPU temperature via the executi...
Definition: GPUInfoPosix.cpp:13
Definition: Temperature.h:15