kodi
CPUInfoLinux.h
1 /*
2  * Copyright (C) 2005-2018 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/Temperature.h"
12 
13 #include "platform/posix/CPUInfoPosix.h"
14 
15 #include <string>
16 
18 {
19 public:
20  CCPUInfoLinux();
21  ~CCPUInfoLinux() = default;
22 
23  int GetUsedPercentage() override;
24  float GetCPUFrequency() override;
25  bool GetTemperature(CTemperature& temperature) override;
26 
27 private:
28  std::string m_freqPath;
29  std::string m_tempPath;
30 };
Definition: CPUInfoLinux.h:17
Definition: Temperature.h:15
Definition: CPUInfoPosix.h:13