[Interest] DBus on X11 using Qt5

Ramakanthreddy Kesireddy Ramakanthreddy.Kesireddy at techmahindra.com
Wed Jul 24 14:55:54 CEST 2013



Hi,

I would like to understand why the below code snippet doesnot works(Filesystem path doesnot returns any) in Ubuntu 12.04 minimal version where as  It works fine in Ubuntu 12.04 desktop version on target tegra3 device.


QDBusMessage Reply;
QDBusInterface* Connection= new
 QDBusInterface(DISK_SERV,HAL_MGR_PATH,DISK_SERV,QDBusConnection::systemBus(), this);

Reply = Connection->call("EnumerateDevices");

if( QDBusMessage::ReplyMessage == Reply.type())
{
QDBusArgument dbusarg = qvariant_cast<QDBusArgument>(Reply.arguments()[0]);
dbusarg.beginArray();

     while(!dbusarg.atEnd())
     {
       QVariant variant = dbusarg.asVariant();
       QDBusObjectPath dbusObjectPath = qvariant_cast<QDBusObjectPath>
            (variant);

       mFileSystemPaths.append(dbusObjectPath.path());
     }
     dbusarg.endArray();
    }

  delete Connection;

Please let me know if there are any dependencies on DBUS for the above code to work
On linux systems as this code retrieves the file system path like /dev/sda1 for example.

Thanks and Regards,
Ramakanth

























From: Ramakanthreddy Kesireddy
Sent: 17 July 2013 17:37
To: interest at qt-project.org
Subject: DBus on X11 using Qt5

Hi,

Please let me know how can we verify if DBus is working on X11(Ubuntu 12.04 Minimal)
or if there are any dependent packages to be installed for DBus.

Iam using Qt5.0.2 sdk.

Thanks and Regards,
Ramakanth

________________________________

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130724/95cf1824/attachment.html>


More information about the Interest mailing list