1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-07 03:22:33 +01:00
ScreenPlay/ScreenPlaySysInfo/sysinfo.h
2019-09-01 12:01:42 +02:00

39 lines
601 B
C++

#pragma once
#include <QQuickItem>
#include <memory>
#include "cpu.h"
#include "ram.h"
class SysInfo : public QQuickItem {
Q_OBJECT
Q_PROPERTY(RAM* ram READ ram NOTIFY ramChanged)
Q_PROPERTY(CPU* cpu READ cpu NOTIFY cpuChanged)
public:
SysInfo(QQuickItem* parent = nullptr);
~SysInfo(){}
RAM* ram() const
{
return m_ram.get();
}
CPU* cpu() const
{
return m_cpu.get();
}
public slots:
signals:
void ramChanged(RAM* ram);
void cpuChanged(CPU* cpu);
private:
std::unique_ptr<RAM> m_ram;
std::unique_ptr<CPU> m_cpu;
};