-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathThread.h
More file actions
executable file
·31 lines (29 loc) · 831 Bytes
/
Copy pathThread.h
File metadata and controls
executable file
·31 lines (29 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef THREAD_H
#define THREAD_H
#include <QApplication>
#include <QWidget>
#include <QThread>
#include <QTextEdit>
#include <QDebug>
#include <vector>
using namespace std;
class Thread: public QThread{
Q_OBJECT
public:
Thread(QObject *parent = nullptr);
signals:
void temperatureCPUUpdated(double temperature);
void perUsageCPUUpdated(double usagecpu);
void usageRAMUpdated(vector<double> usageram );
void coreClockCPUUpdated(double clockcpu);
void powerConsumptionUpdated(double usagepower);
private:
void run() override;
double getTemperatureCPU();
double getPerUsageCPU();
vector<double> getUsageRAM();
double getCoreClockCPU();
double readUsageCPU();
double getConsumptionPower();
};
#endif // THREAD_H