Files
Stacer/stacer-core/Info/system_info.h
Oğuzhan İnan 82247ac648 stacer native
2017-08-23 14:49:45 +03:00

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