cacic_computer.h 882 Bytes
#ifndef CACIC_COMPUTER_H
#define CACIC_COMPUTER_H

#include <QObject>
#include <QStringList>
//#include <QtSerialPort/QtSerialPort>
//#include <QtSerialPort/QSerialPortInfo>
#include <QtNetwork/QtNetwork>
#include <QSysInfo>
#include "operatingsystem.h"
#include "console.h"
#include <sys/utsname.h>

class CACIC_Computer
{
public:
    CACIC_Computer();

    OperatingSystem getOs() const;
    std::string getUser() const;
    QList<QVariantMap> getNetworkInterface() const;
    QList<QVariantMap> networkInterfacesRunning();
    QJsonObject toJsonObject();

private:

    OperatingSystem oOperatingSystem;
    int pegarOS();
    std::string pegarUsu();

    ConsoleObject console;

    QList<QVariantMap> networkInterface;
    std::string usuario;
    std::string computerName;

};

Q_DECLARE_METATYPE(CACIC_Computer)
Q_DECLARE_METATYPE(CACIC_Computer*)
#endif // CACIC_COMPUTER_H