new_alterator/include/dist_info.h
2022-07-08 19:54:15 +04:00

48 lines
827 B
C++

#ifndef ALTERATORDISTINFO_H
#define ALTERATORDISTINFO_H
#include <QtDBus/QtDBus>
#include <QProcess>
class AlteratorDistInfo: public QObject
{
Q_OBJECT
public:
AlteratorDistInfo(QObject *parent);
AlteratorDistInfo();
~AlteratorDistInfo();
Q_INVOKABLE QString getOS();
Q_INVOKABLE QString getInstalledOS();
Q_INVOKABLE QString getKernel();
Q_INVOKABLE QString getProcessor();
Q_INVOKABLE QString getRAM();
Q_INVOKABLE QString getChassis();
Q_INVOKABLE QString getVendor();
Q_INVOKABLE QString getDevice();
Q_INVOKABLE QString getRealm();
Q_INVOKABLE QString getHostname();
Q_INVOKABLE QString getRole();
Q_INVOKABLE QString getWorkgroup();
private:
QDBusInterface *DBusInterface;
QProcess *commandLineP;
};
#endif // ALTERATORDISTINFO_H