From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-vi1eur05on2076.outbound.protection.outlook.com ([40.107.21.76] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mAREX-0003oW-2c for RAUC@pengutronix.de; Mon, 02 Aug 2021 08:15:30 +0200 From: "Stahl, Michael" Date: Mon, 2 Aug 2021 06:15:26 +0000 Message-ID: Content-Language: de-DE MIME-Version: 1.0 Subject: [RAUC] D-Bus control Qt List-Id: RAUC Project - Discussion List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0516520809==" Errors-To: rauc-bounces@pengutronix.de Sender: "RAUC" To: "RAUC@pengutronix.de" --===============0516520809== Content-Language: de-DE Content-Type: multipart/alternative; boundary="_000_AM9PR09MB47567FC83E0FE16AEC4BB2F0DBEF9AM9PR09MB4756eurp_" --_000_AM9PR09MB47567FC83E0FE16AEC4BB2F0DBEF9AM9PR09MB4756eurp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Is there someone who implemented the DBus Property "Progress" into a Qt-App= lication? The problem seems the return value isi (Integer, String, Integer)= . For all other properties with a single return value like "Operation" or "La= stError" the Qt DBus API works fine. I found an email from 28.Oct 2019 in the mailing list where Bastian Krause = had the same issue. The answer was only that he had to cunsult the Qt DBus = documentation on how a tuple is mapped to Qt types. Thats a good hint but after hours of searching the web I didn't find a solu= tion. The return value for a property is QVariant in Qt. Trial 1 -> Read value by iface.property("Progress"): This is the error message I got when I try to read the progress property: Cannot construct placeholder type QDBusRawType Trial 2 -> Read value by iface.call("Get",...): Not able to get any information. The arguments of the returned QDBusMessage= s are always empty! --_000_AM9PR09MB47567FC83E0FE16AEC4BB2F0DBEF9AM9PR09MB4756eurp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Is there someone who implemented the DBus Property "Progress" int= o a Qt-Application? The problem seems the return value isi (Integer, String= , Integer). 
For all other properties with a single retur= n value like "Operation" or "LastError" the Qt DBus API= works fine. 
I found an email from 28.Oct 2019 in the mai= ling list where Bastian Krause had the same issue. The answer was only that= he had to cunsult the Qt DBus documentation on how a tuple is mapped to Qt types.

Thats a good hint but after hours of searchi= ng the web I didn't find a solution. The return value for a property is QVa= riant in Qt. 

Trial 1 -> Read value by iface.property(&= quot;Progress"):
This is the error message I got when I try t= o read the progress property:
Cannot construct placehold= er type QDBusRawType

Trial 2 -> Read value by iface.call("Get",...):
Not able to get any information. The arguments of the returned QDBusMessages a= re always empty!


--_000_AM9PR09MB47567FC83E0FE16AEC4BB2F0DBEF9AM9PR09MB4756eurp_-- --===============0516520809== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ RAUC mailing list --===============0516520809==--