Expand SensorWrapper

This commit is contained in:
2022-08-05 00:17:13 +02:00
parent 625256dff1
commit 39310ad4d2
4 changed files with 51 additions and 5 deletions

View File

@@ -1,17 +1,29 @@
#ifndef SENSORSWRAPPER_H_
#define SENSORSWRAPPER_H_
#include <string>
#include <vector>
#include <sensors/sensors.h>
struct Sensor {
sensors_chip_name chipName;
sensors_feature feature;
sensors_subfeature subFeature;
};
class SensorsWrapper {
public:
SensorsWrapper();
~SensorsWrapper();
std::vector<Sensor> getTemperatureSensors();
int getValue(Sensor sensor);
std::string getLabel(Sensor sensor);
private:
std::vector<const sensors_subfeature *> mTemperatureSensors;
std::vector<const sensors_subfeature *> mFanSensors;
std::vector<Sensor> mTemperatureSensors;
std::vector<Sensor> mFanSensors;
};
#endif // SENSORSWRAPPER_H_