new_alterator/include/dist_info.h
2022-07-11 20:12:12 +04:00

38 lines
876 B
C++

#ifndef ALTERATORDISTINFO_H
#define ALTERATORDISTINFO_H
#include <QtDBus/QtDBus>
#include <QProcess>
namespace Alterator {
class DistInfo: public QObject
{
Q_OBJECT
public:
DistInfo(QObject *parent);
DistInfo();
~DistInfo();
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();
Q_INVOKABLE QString getHomeURL();
Q_INVOKABLE QString getBugURL();
private:
QDBusInterface *DBusInterface;
QProcess *commandLineP;
};
}
#endif // ALTERATORDISTINFO_H