[Interest] QtDBus Example to read files from USB

Thiago Macieira thiago.macieira at intel.com
Thu Aug 21 16:28:44 CEST 2014


On Thursday 21 August 2014 10:51:45 Ramakanthreddy Kesireddy wrote:
> Is it recommened to fetch the file system paths like below once device is
> connected or any other API to fetch the filesystem path? Here path is
> device mounted path like /org/freedesktop/UDisks/devices/sda1.
> 
> QDBusMessage message =
> QDBusMessage::createMethodCall("org.freedesktop.UDisks", path",
>                                                          
> "org.freedesktop.DBus.Properties", "Get");
> QDBusMessage response = QDBusConnection::systemBus().call(message);

The QtDBus call sequence looks correct. There are other ways to do it, but 
this is the simplest and most efficient way possible.

Whether the call itself is correct, I wouldn't know. Please ask that of the 
UDisks developers and community.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list