Confdump Agent
1.4.0
|
Dump data from WMI (available on MS Windows only) More...
#include <WmiDumper.hpp>
Public Member Functions | |
WmiDumper () | |
Constructs a Dumper connected to the default WMI namespace. | |
WmiDumper (QString wmiNamespace) | |
Constructs a Dumper connected to a given WMI namespace. | |
virtual | ~WmiDumper () |
QStringList | listTables () |
Result | queryTable (QString table) |
QString | computerIdentifier () |
Private Member Functions | |
virtual QStringList | doListTables () |
A list of the WMI classes available in the current namespace. | |
virtual Result | doQueryTable (QString table) |
All the instances of a WMI class in the current namespace. | |
virtual QString | doComputerIdentifier () |
Globally identify this computer. | |
void | initWbemServices () |
Constructor utility. | |
Private Attributes | |
boost::shared_ptr < Wmi::WbemServices > | services_ |
Dump data from WMI (available on MS Windows only)
The interface is common to other Dumpers.
Note: The current implementation accesses only the local computer.
Definition at line 46 of file WmiDumper.hpp.
Constructs a Dumper connected to the default WMI namespace.
Wmi::NoSuchNamespace | (should not happen) |
Wmi::WmiError | |
Wmi::ComError |
Definition at line 104 of file WmiDumper.cpp.
Confdump::System::WmiDumper::WmiDumper | ( | QString | wmiNamespace | ) |
Constructs a Dumper connected to a given WMI namespace.
Wmi::NoSuchNamespace | |
Wmi::WmiError | |
Wmi::ComError |
Definition at line 110 of file WmiDumper.cpp.
Confdump::System::WmiDumper::~WmiDumper | ( | ) | [virtual] |
Definition at line 117 of file WmiDumper.cpp.
QString Confdump::Dumper::computerIdentifier | ( | ) | [inherited] |
Definition at line 41 of file Dumper.cpp.
References Confdump::Dumper::doComputerIdentifier().
QString Confdump::System::WmiDumper::doComputerIdentifier | ( | ) | [private, virtual] |
Globally identify this computer.
Current implementation: query the UUID from the Win32_ComputerSystemProduct instance.
Wmi::WmiError | |
Wmi::ComError |
Reimplemented from Confdump::Dumper.
Definition at line 161 of file WmiDumper.cpp.
References Confdump::Result::begin(), and Confdump::Result::end().
QStringList Confdump::System::WmiDumper::doListTables | ( | ) | [private, virtual] |
A list of the WMI classes available in the current namespace.
Wmi::WmiError | |
Wmi::ComError |
Reimplemented from Confdump::Dumper.
Definition at line 170 of file WmiDumper.cpp.
References Confdump::System::Wmi::throwOnWmiError().
Confdump::Result Confdump::System::WmiDumper::doQueryTable | ( | QString | table | ) | [private, virtual] |
All the instances of a WMI class in the current namespace.
table | the WMI class name |
Wmi::NoSuchTable | |
Wmi::WmiError | |
Wmi::ComError |
Implements Confdump::Dumper.
Definition at line 127 of file WmiDumper.cpp.
References Confdump::Result::addRow(), and Confdump::System::Wmi::throwOnWmiError().
void Confdump::System::WmiDumper::initWbemServices | ( | ) | [private] |
Constructor utility.
Definition at line 121 of file WmiDumper.cpp.
References Confdump::System::Wmi::ComContext::getGuard().
QStringList Confdump::Dumper::listTables | ( | ) | [inherited] |
Definition at line 31 of file Dumper.cpp.
References Confdump::Dumper::doListTables().
Result Confdump::Dumper::queryTable | ( | QString | table | ) | [inherited] |
Definition at line 36 of file Dumper.cpp.
References Confdump::Dumper::doQueryTable().
boost::shared_ptr<Wmi::WbemServices> Confdump::System::WmiDumper::services_ [private] |
Definition at line 100 of file WmiDumper.hpp.