forked from jackburton79/ocs-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInventory.h
56 lines (45 loc) · 1.37 KB
/
Inventory.h
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* Inventory.h
*
* Created on: 11/lug/2013
* Author: Stefano Ceccherini
*/
#ifndef INVENTORY_H_
#define INVENTORY_H_
#include <string>
namespace tinyxml2 {
class XMLDocument;
class XMLElement;
}
class Machine;
class Inventory {
public:
Inventory();
~Inventory();
bool Initialize();
void Clear();
bool Build(bool noSoftware = false);
bool Save(const char* fileName);
bool Send(const char* serverUrl);
void Print();
int Checksum() const;
private:
void _AddAccountInfo(tinyxml2::XMLElement* parent);
void _AddBIOSInfo(tinyxml2::XMLElement* parent);
void _AddCPUsInfo(tinyxml2::XMLElement* parent);
void _AddStoragesInfo(tinyxml2::XMLElement* parent);
void _AddMemoriesInfo(tinyxml2::XMLElement* parent);
void _AddDrivesInfo(tinyxml2::XMLElement* parent);
void _AddHardwareInfo(tinyxml2::XMLElement* parent);
void _AddNetworksInfo(tinyxml2::XMLElement* parent);
void _AddProcessesInfo(tinyxml2::XMLElement* parent);
void _AddSoftwaresInfo(tinyxml2::XMLElement* parent);
void _AddUsersInfo(tinyxml2::XMLElement* parent);
void _AddVideosInfo(tinyxml2::XMLElement* parent);
void _AddMonitorsInfo(tinyxml2::XMLElement* parent);
bool _WriteProlog(tinyxml2::XMLDocument& document) const;
tinyxml2::XMLDocument* fDocument;
tinyxml2::XMLElement* fContent;
Machine* fMachine;
};
#endif /* INVENTORY_H_ */