#include <HalContext.h>
Public Types | |
typedef zypp::RW_pointer< HalContext_Impl >::unspecified_bool_type | bool_type |
Public Member Functions | |
HalContext (bool autoconnect=false) | |
HalContext (const HalContext &context) | |
~HalContext () | |
HalContext & | operator= (const HalContext &context) |
operator bool_type () const | |
Verifies if the context is initialized. | |
void | connect () |
std::vector< std::string > | getAllDevices () const |
Retrieve UDI's of all devices. | |
HalDrive | getDriveFromUDI (const std::string &udi) const |
Construct a HalDrive object for the specified UDI. | |
HalVolume | getVolumeFromUDI (const std::string &udi) const |
Construct a HalVolume object for the specified UDI. | |
HalVolume | getVolumeFromDeviceFile (const std::string &device_file) const |
std::vector< std::string > | findDevicesByCapability (const std::string &capability) const |
Retrieve UDI's of all devices with a capability. | |
bool | getDevicePropertyBool (const std::string &udi, const std::string &key) const |
int32_t | getDevicePropertyInt32 (const std::string &udi, const std::string &key) const |
uint64_t | getDevicePropertyUInt64 (const std::string &udi, const std::string &key) const |
double | getDevicePropertyDouble (const std::string &udi, const std::string &key) const |
std::string | getDevicePropertyString (const std::string &udi, const std::string &key) const |
void | setDevicePropertyBool (const std::string &udi, const std::string &key, bool value) |
void | setDevicePropertyInt32 (const std::string &udi, const std::string &key, int32_t value) |
void | setDevicePropertyUInt64 (const std::string &udi, const std::string &key, uint64_t value) |
void | setDevicePropertyDouble (const std::string &udi, const std::string &key, double value) |
void | setDevicePropertyString (const std::string &udi, const std::string &key, const std::string &value) |
void | removeDeviceProperty (const std::string &udi, const std::string &key) |
Private Member Functions | |
HalContext (bool, bool) | |
Private Attributes | |
zypp::RW_pointer< HalContext_Impl > | h_impl |
Hal context wrapper. It manages the dbus connection and is the entry point to query drives, volumes and other information.
Definition at line 57 of file HalContext.h.
|
Definition at line 61 of file HalContext.h. |
|
Definition at line 257 of file HalContext.cc. References zypp::target::hal::g_Mutex, h_impl, and zypp::RW_pointer< _D, _Traits >::reset(). |
|
Definition at line 267 of file HalContext.cc. References zypp::target::hal::g_Mutex, and h_impl. |
|
Definition at line 286 of file HalContext.cc. References zypp::target::hal::g_Mutex, h_impl, and zypp::RW_pointer< _D, _Traits >::reset(). |
|
Definition at line 276 of file HalContext.cc. References zypp::target::hal::g_Mutex, h_impl, and zypp::RW_pointer< _D, _Traits >::reset(). |
|
Definition at line 295 of file HalContext.cc. References zypp::target::hal::g_Mutex, and h_impl. |
|
Verifies if the context is initialized.
Definition at line 307 of file HalContext.cc. References zypp::target::hal::g_Mutex, and h_impl. |
|
Definition at line 316 of file HalContext.cc. References zypp::target::hal::g_Mutex, h_impl, and zypp::RW_pointer< _D, _Traits >::reset(). |
|
Retrieve UDI's of all devices.
Definition at line 326 of file HalContext.cc. References zypp::target::hal::g_Mutex, h_impl, zypp::target::hal::VERIFY_CONTEXT(), and ZYPP_THROW. |
|
Construct a HalDrive object for the specified UDI.
Definition at line 348 of file HalContext.cc. References zypp::target::hal::g_Mutex, h_impl, and zypp::target::hal::VERIFY_CONTEXT(). |
|
Construct a HalVolume object for the specified UDI.
Definition at line 362 of file HalContext.cc. References zypp::target::hal::g_Mutex, h_impl, and zypp::target::hal::VERIFY_CONTEXT(). |
|
Definition at line 376 of file HalContext.cc. References zypp::target::hal::g_Mutex, h_impl, and zypp::target::hal::VERIFY_CONTEXT(). |
|
Retrieve UDI's of all devices with a capability.
Definition at line 391 of file HalContext.cc. References zypp::target::hal::g_Mutex, h_impl, zypp::target::hal::VERIFY_CONTEXT(), and ZYPP_THROW. |
|
Definition at line 415 of file HalContext.cc. References zypp::target::hal::g_Mutex, h_impl, zypp::target::hal::VERIFY_CONTEXT(), and ZYPP_THROW. |
|
Definition at line 437 of file HalContext.cc. References zypp::target::hal::g_Mutex, h_impl, zypp::target::hal::VERIFY_CONTEXT(), and ZYPP_THROW. |
|
Definition at line 459 of file HalContext.cc. References zypp::target::hal::g_Mutex, h_impl, zypp::target::hal::VERIFY_CONTEXT(), and ZYPP_THROW. |
|
Definition at line 481 of file HalContext.cc. References zypp::target::hal::g_Mutex, h_impl, zypp::target::hal::VERIFY_CONTEXT(), and ZYPP_THROW. |
|
Definition at line 504 of file HalContext.cc. References zypp::target::hal::g_Mutex, h_impl, zypp::target::hal::VERIFY_CONTEXT(), and ZYPP_THROW. |
|
Definition at line 532 of file HalContext.cc. References zypp::target::hal::g_Mutex, h_impl, zypp::target::hal::VERIFY_CONTEXT(), and ZYPP_THROW. |
|
Definition at line 555 of file HalContext.cc. References zypp::target::hal::g_Mutex, h_impl, zypp::target::hal::VERIFY_CONTEXT(), and ZYPP_THROW. |
|
Definition at line 578 of file HalContext.cc. References zypp::target::hal::g_Mutex, h_impl, zypp::target::hal::VERIFY_CONTEXT(), and ZYPP_THROW. |
|
Definition at line 601 of file HalContext.cc. References zypp::target::hal::g_Mutex, h_impl, zypp::target::hal::VERIFY_CONTEXT(), and ZYPP_THROW. |
|
Definition at line 624 of file HalContext.cc. References zypp::target::hal::g_Mutex, h_impl, zypp::target::hal::VERIFY_CONTEXT(), and ZYPP_THROW. |
|
Definition at line 647 of file HalContext.cc. References zypp::target::hal::g_Mutex, h_impl, zypp::target::hal::VERIFY_CONTEXT(), and ZYPP_THROW. |
|