cacic_hardware.h
894 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
#ifndef CACIC_HARDWARE_H
#define CACIC_HARDWARE_H
#include <QtCore>
#include <QJsonArray>
#include <QJsonArray>
#include <cmath>
#include <ccacic.h>
#include <console.h>
#include <operatingsystem.h>
#if defined(Q_OS_WIN)
#define _WIN32_DCOM
#include <iostream>
//using namespace std;
#include <wbemidl.h>
#include <windows.h>
# pragma comment(lib, "wbemuuid.lib")
#endif
class cacic_hardware
{
public:
cacic_hardware();
void iniciaColeta();
QJsonObject toJsonObject();
private:
QJsonObject coletaWin();
QJsonObject coletaLinux();
void coletaLinuxMem(QJsonObject &hardware, const QJsonObject &component);
void coletaLinuxCpu(QJsonObject &hardware, const QJsonObject &component);
void coletaLinuxPci(QJsonObject &hardware, const QJsonObject &pciJson);
CCacic oCacic;
QJsonObject coletaHardware;
};
#endif // CACIC_HARDWARE_H