mirror of
https://github.com/oguzhaninan/Stacer.git
synced 2025-12-23 23:18:31 -05:00
48 lines
881 B
C++
48 lines
881 B
C++
#ifndef SYSTEMINFO_H
|
|
#define SYSTEMINFO_H
|
|
|
|
#include <QObject>
|
|
#include <QSysInfo>
|
|
#include <QMap>
|
|
#include <QDebug>
|
|
|
|
#include "Utils/file_util.h"
|
|
#include "Utils/format_util.h"
|
|
#include "Utils/command_util.h"
|
|
#include "Info/cpu_info.h"
|
|
|
|
#define PROC_CPUINFO "/proc/cpuinfo"
|
|
|
|
#include "stacer-core_global.h"
|
|
class STACERCORESHARED_EXPORT SystemInfo : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
SystemInfo();
|
|
|
|
QString getHostname();
|
|
QString getPlatform();
|
|
QString getDistribution();
|
|
QString getKernel();
|
|
QString getCpuModel();
|
|
QString getCpuSpeed();
|
|
QString getCpuCore();
|
|
|
|
QFileInfoList getCrashReports();
|
|
QFileInfoList getAppLogs();
|
|
QFileInfoList getAppCaches();
|
|
|
|
QString getUsername() const;
|
|
|
|
private:
|
|
QString cpuCore;
|
|
QString cpuModel;
|
|
QString cpuSpeed;
|
|
|
|
QSysInfo *info;
|
|
|
|
QString username;
|
|
};
|
|
|
|
#endif // SYSTEMINFO_H
|