Confdump Agent  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Public Member Functions | Private Member Functions | Private Attributes
Confdump::System::WmiDumper Class Reference

Dump data from WMI (available on MS Windows only) More...

#include <WmiDumper.hpp>

Inheritance diagram for Confdump::System::WmiDumper:
Confdump::Dumper

List of all members.

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_

Detailed Description

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.


Constructor & Destructor Documentation

Constructs a Dumper connected to the default WMI namespace.

Exceptions:
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.

Exceptions:
Wmi::NoSuchNamespace
Wmi::WmiError
Wmi::ComError

Definition at line 110 of file WmiDumper.cpp.

Definition at line 117 of file WmiDumper.cpp.


Member Function Documentation

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.

Returns:
the empty string if unknown
Exceptions:
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.

Exceptions:
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.

Parameters:
tablethe WMI class name
Exceptions:
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().

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().


Member Data Documentation

Definition at line 100 of file WmiDumper.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends