cacic_computer.h
882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#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