summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehw/tdehardwaredevices.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-12-26 23:08:00 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-12-26 23:08:00 -0600
commit6d8bcb6202e3ce8d69799b371fde1d3aeb22bae8 (patch)
treeb25dc34bbef5cc04cdeadd03d40ef39c98f99edf /tdecore/tdehw/tdehardwaredevices.cpp
parent39aba03a49eb0f048b5b05cb6a8d149082edb299 (diff)
downloadtdelibs-6d8bcb6202e3ce8d69799b371fde1d3aeb22bae8.tar.gz
tdelibs-6d8bcb6202e3ce8d69799b371fde1d3aeb22bae8.zip
Use direct DBUS calls for udisks2
Diffstat (limited to 'tdecore/tdehw/tdehardwaredevices.cpp')
-rw-r--r--tdecore/tdehw/tdehardwaredevices.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/tdecore/tdehw/tdehardwaredevices.cpp b/tdecore/tdehw/tdehardwaredevices.cpp
index 7be686722..8038a3380 100644
--- a/tdecore/tdehw/tdehardwaredevices.cpp
+++ b/tdecore/tdehw/tdehardwaredevices.cpp
@@ -99,6 +99,20 @@ unsigned int reverse_bits(register unsigned int x)
#define BIT_IS_SET(bits, n) (bits[n >> 3] & (1 << (n & 0x7)))
+#if defined(WITH_UDISKS) || defined(WITH_UDISKS2) || defined(WITH_NETWORK_MANAGER_BACKEND)
+#include <tqdbusvariant.h>
+#include <tqdbusdata.h>
+// Convenience method for tdehwlib DBUS calls
+// FIXME
+// Should probably be part of dbus-1-tqt
+TQT_DBusData convertDBUSDataToVariantData(TQT_DBusData object) {
+ TQT_DBusVariant variant;
+ variant.value = object;
+ variant.signature = variant.value.buildDBusSignature();
+ return TQT_DBusData::fromVariant(variant);
+}
+#endif // defined(WITH_UDISKS) || defined(WITH_UDISKS2) || defined(WITH_NETWORK_MANAGER_BACKEND)
+
TDEHardwareDevices::TDEHardwareDevices() {
// Initialize members
pci_id_map = 0;