[Interest] QtDBus Example to read files from USB

Ramakanthreddy Kesireddy Ramakanthreddy.Kesireddy at techmahindra.com
Thu Aug 21 12:51:45 CEST 2014


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);

Thanks and Regards,
Ramakanth

-----Original Message-----
From: interest-bounces+ramakanthreddy.kesireddy=techmahindra.com at qt-project.org [mailto:interest-bounces+ramakanthreddy.kesireddy=techmahindra.com at qt-project.org] On Behalf Of Thiago Macieira
Sent: Wednesday, August 20, 2014 10:32 PM
To: interest at qt-project.org
Subject: Re: [Interest] QtDBus Example to read files from USB

On Wednesday 20 August 2014 12:28:41 Ramakanthreddy Kesireddy wrote:
> Hi Thiago,
>
> Thanks for the earlier post.
>
> Did manage to work better with USB sample code using QtDBus.
>
> However, as I got to list the device mounted paths now, could you
> please let me know how to make calls to fetch the device mounted paths.

Tell me what calls you want to make and I'll help you write the code.

I am not familiar with the D-Bus API that you're using (whichever it is).

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

_______________________________________________
Interest mailing list
Interest at qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

________________________________

DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.


============================================================================================================================
Disclaimer:  This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/Disclaimer.html externally http://tim.techmahindra.com/tim/disclaimer.html internally within TechMahindra.
============================================================================================================================




More information about the Interest mailing list