[Interest] DBus on X11 using Qt5

Ramakanthreddy Kesireddy Ramakanthreddy.Kesireddy at techmahindra.com
Fri Jul 19 12:14:55 CEST 2013


Hi Thiago,

Am somehow couldnot send the below mail to interest at qt-project.org<mailto:interest at qt-project.org>. Hence writing the mail in person.

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.

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/20130719/43327720/attachment.html>


More information about the Interest mailing list