From mboxrd@z Thu Jan  1 00:00:00 1970
Return-path: <rauc-bounces@pengutronix.de>
From: "Stahl, Michael" <mstahl@moba.de>
Date: Tue, 3 Aug 2021 10:57:47 +0000
Message-ID: <AM9PR09MB4756BB53803B285E7885CB46DBF09@AM9PR09MB4756.eurprd09.prod.outlook.com>
References: <AM9PR09MB47567FC83E0FE16AEC4BB2F0DBEF9@AM9PR09MB4756.eurprd09.prod.outlook.com>,
 <OF278C4D67.A285721B-ONC1258725.003E2C50-C1258725.0040418D@JUMO.DE>,
 <AM9PR09MB47563BB4F309DDD51814BF72DBEF9@AM9PR09MB4756.eurprd09.prod.outlook.com>
 <AM9PR09MB4756411B8C78CCE0C6E9E898DBEF9@AM9PR09MB4756.eurprd09.prod.outlook.com>,
 <OF49D2616A.4F2E6473-ONC1258725.004A6743-C1258725.004ACA74@JUMO.DE>
 <AM9PR09MB47565A139DBA7695DFA7C3A7DBEF9@AM9PR09MB4756.eurprd09.prod.outlook.com>,
 <OFED8DCEE2.1D888448-ONC1258725.0050FDA1-C1258725.0051D69F@JUMO.DE>
 <AM9PR09MB475641FB562F9ED5417F0C0CDBF09@AM9PR09MB4756.eurprd09.prod.outlook.com>,
 <OF2EA75551.5934A3EE-ONC1258726.00235C12-C1258726.00237EEF@JUMO.DE>,
 <AM9PR09MB4756881E4E1213CB37FF98B8DBF09@AM9PR09MB4756.eurprd09.prod.outlook.com>
In-Reply-To: <AM9PR09MB4756881E4E1213CB37FF98B8DBF09@AM9PR09MB4756.eurprd09.prod.outlook.com>
Content-Language: de-DE
MIME-Version: 1.0
Subject: Re: [RAUC] Antwort: Re: Antwort: Re: Antwort: Re: Antwort: D-Bus
 control Qt
List-Id: RAUC Project - Discussion List <rauc.pengutronix.de>
List-Unsubscribe: <http://metis.pengutronix.de/cgi-bin/mailman/options/rauc>, 
 <mailto:rauc-request@pengutronix.de?subject=unsubscribe>
List-Archive: <http://metis.pengutronix.de/cgi-bin/mailman/private/rauc/>
List-Post: <mailto:rauc@pengutronix.de>
List-Help: <mailto:rauc-request@pengutronix.de?subject=help>
List-Subscribe: <http://metis.pengutronix.de/cgi-bin/mailman/listinfo/rauc>,
 <mailto:rauc-request@pengutronix.de?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1795267209=="
Errors-To: rauc-bounces@pengutronix.de
Sender: "RAUC" <rauc-bounces@pengutronix.de>
To: "Eugen.Wiens@JUMO.net" <Eugen.Wiens@JUMO.net>
Cc: RAUC <rauc-bounces@pengutronix.de>, "RAUC@pengutronix.de" <RAUC@pengutronix.de>

--===============1795267209==
Content-Language: de-DE
Content-Type: multipart/alternative;
	boundary="_000_AM9PR09MB4756BB53803B285E7885CB46DBF09AM9PR09MB4756eurp_"

--_000_AM9PR09MB4756BB53803B285E7885CB46DBF09AM9PR09MB4756eurp_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I found the issue

You have to connect to the systemBus not to the sessionBus!

if (QDBusConnection::systemBus().connect("de.pengutronix.rauc",            =
                             //Service

                                 "/",                               //Path

                                 "org.freedesktop.DBus.Properties", //Inter=
face

                                 "PropertiesChanged",

                                 this,

                                 SLOT(propertyChanged(const QString& ,

                                                      const QMap<QString, Q=
Variant>& ,

                                                      const QStringList& ))=
)) {


        qDebug() << "PropertiesChanged signal connected successfully to slo=
t";

        } else {

        qDebug() << "PropertiesChanged signal connection was not successful=
";

        }

Now I my function propertyChanged is called every time the property changes=
.

If you use
________________________________
Von: RAUC <rauc-bounces@pengutronix.de> im Auftrag von Stahl, Michael <msta=
hl@moba.de>
Gesendet: Dienstag, 3. August 2021 10:27
An: Eugen.Wiens@JUMO.net <Eugen.Wiens@JUMO.net>
Cc: RAUC <rauc-bounces@pengutronix.de>; RAUC@pengutronix.de <RAUC@pengutron=
ix.de>
Betreff: Re: [RAUC] Antwort: Re: Antwort: Re: Antwort: Re: Antwort: D-Bus c=
ontrol Qt

Hi Euen,

I know but I am stucking. I am polling the propery "Operation". Just when i=
t changes from "idle" to "installing" I subscribe the PropertiesChanged sig=
nal but without success. I tried several connect strings but all without su=
ccess.


if (QDBusConnection::sessionBus().connect("de.pengutronix.rauc",

                                 "/",

                                 "org.freedesktop.DBus.Properties",

                                 "PropertiesChanged",

                                 this,

                                 SLOT(propertyChanged(const QString& ,

                                                      const QMap<QString, Q=
Variant>& ,

                                                      const QStringList& ))=
))

{

    qDebug() << "PropertiesChanged signal connected successfully to slot";

} else {

    qDebug() << "PropertiesChanged signal connection was not successful";

}

Please can you tell me how to subcribe the PropertiesChanged signal?

________________________________
Von: Eugen.Wiens@JUMO.net <Eugen.Wiens@JUMO.net>
Gesendet: Dienstag, 3. August 2021 08:27
An: Stahl, Michael <mstahl@moba.de>
Cc: RAUC@pengutronix.de <RAUC@pengutronix.de>; RAUC <rauc-bounces@pengutron=
ix.de>
Betreff: Antwort: Re: [RAUC] Antwort: Re: Antwort: Re: Antwort: D-Bus contr=
ol Qt

Hi Michael,

you can connect to a property change on dbus level. That is the way we do i=
t.


"RAUC" <rauc-bounces@pengutronix.de> schrieb am 03.08.2021 08:21:32:

> Von: "Stahl, Michael" <mstahl@moba.de>
> An: "Eugen.Wiens@JUMO.net" <Eugen.Wiens@JUMO.net>
> Kopie: "RAUC" <rauc-bounces@pengutronix.de>, "RAUC@pengutronix.de"
> <RAUC@pengutronix.de>
> Datum: 03.08.2021 08:21
> Betreff: Re: [RAUC] Antwort: Re:  Antwort: Re:  Antwort:  D-Bus control Q=
t
> Gesendet von: "RAUC" <rauc-bounces@pengutronix.de>
>
> Hi Eugen,
>
> thanks again. I implemented the signal and now I get the signal that
> the update is finished.
> But thats the only signal that rauc is provided, isn't it? To get
> the progress I have to poll the property, or are there general
> signals on the dbus that I can connect to?
>
> Do you read the property "Progress" like
> QDBusInterface iface( "de.pengutronix.rauc",
>                  "/",
>                  "de.pengutronix.rauc.Installer",
>                  QDBusConnection::systemBus() );
> QVariant property =3D iface.property("Progress");
> MyProgress parameterProgress;
> property.value<QDBusArgument>() >> parameterProgress;
>
> or did you use another possibility?
> If I use the above I get a message five times and the marshaled data (
> m_Progress, m_Message, ..) are always empty.
> QDBusArgument: read from a write-only object

>
> Von: Eugen.Wiens@JUMO.net <Eugen.Wiens@JUMO.net>
> Gesendet: Montag, 2. August 2021 16:53
> An: Stahl, Michael <mstahl@moba.de>
> Cc: RAUC@pengutronix.de <RAUC@pengutronix.de>; RAUC <rauc-
> bounces@pengutronix.de>
> Betreff: Antwort: Re: [RAUC] Antwort: Re: Antwort: D-Bus control Qt
>
> Hi Michael,
>
> "RAUC" <rauc-bounces@pengutronix.de> schrieb am 02.08.2021 16:29:18:
>
> > Von: "Stahl, Michael" <mstahl@moba.de>
> > An: "Eugen.Wiens@JUMO.net" <Eugen.Wiens@JUMO.net>
> > Kopie: RAUC <rauc-bounces@pengutronix.de>, "RAUC@pengutronix.de"
> > <RAUC@pengutronix.de>
> > Datum: 02.08.2021 16:29
> > Betreff: Re: [RAUC] Antwort: Re:  Antwort:  D-Bus control Qt
> > Gesendet von: "RAUC" <rauc-bounces@pengutronix.de>
> >
> > Okay, thanks a lot.
> >
> > A last question. Is it correct that I have to poll the "Progress"
> > property or is there any signal system where I can subcribe to get a
> > notification at every change of progress status?
>
> We are using a dbus signal. You can connect to it with Qt.
>
> Best regards,
> Eugen
> Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte
> Informationen beinhalten und ist ausschlie?lich f?r die im Verteiler
> genannten Personen bestimmt. Das unerlaubte Kopieren sowie die
> unbefugte Weitergabe dieser Mail sind nicht gestattet. Bitte
> benachrichtigen Sie uns gegebenenfalls telefonisch oder mit Antwort-
> Mail, falls Sie nicht der richtige Adressat dieser E-Mail sind.
> Bitte l?schen Sie diese Nachricht und alle Anh?nge dazu unverz?
> glich. Falls nicht ausdr?cklich vermerkt, ist diese E-Mail keine
> rechtlich bindende Vereinbarung.
>
> Kommanditgesellschaft: JUMO GmbH & Co. KG, Sitz: 36039 Fulda,
> Amtsgericht Fulda HRA 302, Pers?nlich haftende Gesellschafterin: M.
> K. JUCHHEIM GmbH, Sitz: 36039 Fulda, Amtsgericht Fulda HRB 17,
> Gesch?ftsf?hrer: Dipl.-Ing. Bernhard Juchheim, Dipl.-Kfm. Michael
> Juchheim, Dipl.-Ing. Dimitrios Charisiadis
> Ust.-Id.-Nr.: DE 112411234_______________________________________________
> RAUC mailing list

Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte Informationen =
beinhalten und ist ausschlie?lich f?r die im Verteiler genannten Personen b=
estimmt. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail=
 sind nicht gestattet. Bitte benachrichtigen Sie uns gegebenenfalls telefon=
isch oder mit Antwort-Mail, falls Sie nicht der richtige Adressat dieser E-=
Mail sind. Bitte l?schen Sie diese Nachricht und alle Anh?nge dazu unverz?g=
lich. Falls nicht ausdr?cklich vermerkt, ist diese E-Mail keine rechtlich b=
indende Vereinbarung.

Kommanditgesellschaft: JUMO GmbH & Co. KG, Sitz: 36039 Fulda, Amtsgericht F=
ulda HRA 302, Pers?nlich haftende Gesellschafterin: M. K. JUCHHEIM GmbH, Si=
tz: 36039 Fulda, Amtsgericht Fulda HRB 17, Gesch?ftsf?hrer: Dipl.-Ing. Bern=
hard Juchheim, Dipl.-Kfm. Michael Juchheim, Dipl.-Ing. Dimitrios Charisiadi=
s
Ust.-Id.-Nr.: DE 112411234

--_000_AM9PR09MB4756BB53803B285E7885CB46DBF09AM9PR09MB4756eurp_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);">
I found the issue&nbsp;</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);">
You have to connect to the systemBus not to the sessionBus!</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);">
<span style=3D"color:#c0c0c0"></span><span style=3D"color:#808000">if</span=
><span style=3D"color:#c0c0c0">
</span>(<span style=3D"color:#800080">QDBusConnection</span>::<span style=
=3D"color:#00677c">systemBus</span>().<span style=3D"color:#00677c">connect=
</span>(<span style=3D"color:#008000">&quot;de.pengutronix.rauc&quot;</span=
>,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nb=
sp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<sp=
an style=3D"color:#c0c0c0">
</span><span style=3D"color:#008000">//Service</span>
<pre style=3D"margin-top:0px;margin-bottom:0px"><span style=3D"color:#c0c0c=
0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &n=
bsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  </span><span style=3D"color:#00800=
0">&quot;/&quot;</span>,<span style=3D"color:#c0c0c0">&nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; &nbsp;  </span><span style=3D"color: rgb(0, 128, 0); font-family: calibri=
, arial, helvetica, sans-serif; font-size: 12pt; background-color: rgba(0, =
0, 0, 0);">//Path</span></pre>
<pre style=3D"margin-top:0px;margin-bottom:0px"><span style=3D"color:#c0c0c=
0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &n=
bsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span style=3D"color:#=
008000">&quot;org.freedesktop.DBus.Properties&quot;</span>,<span style=3D"c=
olor:#c0c0c0">&nbsp;</span><span style=3D"color: rgb(0, 128, 0); font-famil=
y: calibri, arial, helvetica, sans-serif; font-size: 12pt; background-color=
: rgba(0, 0, 0, 0);">//Interface</span></pre>
<pre style=3D"margin-top:0px;margin-bottom:0px"><span style=3D"color:#c0c0c=
0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &n=
bsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span style=3D"color:#=
008000">&quot;PropertiesChanged&quot;</span>,</pre>
<pre style=3D"margin-top:0px;margin-bottom:0px"><span style=3D"color:#c0c0c=
0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &n=
bsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span style=3D"color:#=
808000">this</span>,</pre>
<pre style=3D"margin-top:0px;margin-bottom:0px"><span style=3D"color:#c0c0c=
0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &n=
bsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span style=3D"color:#=
808000">SLOT</span>(propertyChanged(<span style=3D"color:#808000">const</sp=
an><span style=3D"color:#c0c0c0">&nbsp;</span><span style=3D"color:#800080"=
>QString</span>&amp;<span style=3D"color:#c0c0c0">&nbsp;</span>,</pre>
<pre style=3D"margin-top:0px;margin-bottom:0px"><span style=3D"color:#c0c0c=
0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &n=
bsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span style=3D"color:=
#808000">const</span><span style=3D"color:#c0c0c0">&nbsp;</span><span style=
=3D"color:#800080">QMap</span>&lt;<span style=3D"color:#800080">QString</sp=
an>,<span style=3D"color:#c0c0c0">&nbsp;</span><span style=3D"color:#800080=
">QVariant</span>&gt;&amp;<span style=3D"color:#c0c0c0">&nbsp;</span>,</pre=
>
<pre style=3D"margin-top:0px;margin-bottom:0px"><span style=3D"color:#c0c0c=
0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &n=
bsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span style=3D"color:=
#808000">const</span><span style=3D"color:#c0c0c0">&nbsp;</span><span style=
=3D"color:#800080">QStringList</span>&amp;<span style=3D"color:#c0c0c0">&nb=
sp;</span>))))<span style=3D"color:#c0c0c0">&nbsp;</span>{</pre>
<pre style=3D"margin-top:0px;margin-bottom:0px"><br></pre>
<pre style=3D"margin-top:0px;margin-bottom:0px"><span style=3D"color:#c0c0c=
0">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style=3D"color:#000080">qDebug<=
/span>()<span style=3D"color:#c0c0c0">&nbsp;</span>&lt;&lt;<span style=3D"c=
olor:#c0c0c0">&nbsp;</span><span style=3D"color:#008000">&quot;PropertiesCh=
anged</span><span style=3D"color:#c0c0c0">&nbsp;</span><span style=3D"color=
:#008000">signal</span><span style=3D"color:#c0c0c0">&nbsp;</span><span sty=
le=3D"color:#008000">connected</span><span style=3D"color:#c0c0c0">&nbsp;</=
span><span style=3D"color:#008000">successfully</span><span style=3D"color:=
#c0c0c0">&nbsp;</span><span style=3D"color:#008000">to</span><span style=3D=
"color:#c0c0c0">&nbsp;</span><span style=3D"color:#008000">slot&quot;</span=
>;</pre>
<pre style=3D"margin-top:0px;margin-bottom:0px"><span style=3D"color:#c0c0c=
0">&nbsp; &nbsp; &nbsp; &nbsp; </span>}<span style=3D"color:#c0c0c0">&nbsp;=
</span><span style=3D"color:#808000">else</span><span style=3D"color:#c0c0c=
0">&nbsp;</span>{</pre>
<pre style=3D"margin-top:0px;margin-bottom:0px"><span style=3D"color:#c0c0c=
0">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style=3D"color:#000080">qDebug<=
/span>()<span style=3D"color:#c0c0c0">&nbsp;</span>&lt;&lt;<span style=3D"c=
olor:#c0c0c0">&nbsp;</span><span style=3D"color:#008000">&quot;PropertiesCh=
anged</span><span style=3D"color:#c0c0c0">&nbsp;</span><span style=3D"color=
:#008000">signal</span><span style=3D"color:#c0c0c0">&nbsp;</span><span sty=
le=3D"color:#008000">connection</span><span style=3D"color:#c0c0c0">&nbsp;<=
/span><span style=3D"color:#008000">was</span><span style=3D"color:#c0c0c0"=
>&nbsp;</span><span style=3D"color:#008000">not</span><span style=3D"color:=
#c0c0c0">&nbsp;</span><span style=3D"color:#008000">successful&quot;</span>=
;</pre>
<pre style=3D"margin-top:0px;margin-bottom:0px"><span style=3D"color:#c0c0c=
0">&nbsp; &nbsp; &nbsp; &nbsp; </span>}</pre>
<br>
</div>
<div>
<div id=3D"appendonsend"></div>
<div style=3D"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12p=
t; color:rgb(0,0,0)">
Now I my function propertyChanged is called every time the property changes=
.</div>
<div style=3D"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12p=
t; color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12p=
t; color:rgb(0,0,0)">
If you use&nbsp;</div>
<hr tabindex=3D"-1" style=3D"display:inline-block; width:98%">
<div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" co=
lor=3D"#000000" style=3D"font-size:11pt"><b>Von:</b> RAUC &lt;rauc-bounces@=
pengutronix.de&gt; im Auftrag von Stahl, Michael &lt;mstahl@moba.de&gt;<br>
<b>Gesendet:</b> Dienstag, 3. August 2021 10:27<br>
<b>An:</b> Eugen.Wiens@JUMO.net &lt;Eugen.Wiens@JUMO.net&gt;<br>
<b>Cc:</b> RAUC &lt;rauc-bounces@pengutronix.de&gt;; RAUC@pengutronix.de &l=
t;RAUC@pengutronix.de&gt;<br>
<b>Betreff:</b> Re: [RAUC] Antwort: Re: Antwort: Re: Antwort: Re: Antwort: =
D-Bus control Qt</font>
<div>&nbsp;</div>
</div>
<div dir=3D"ltr">
<div style=3D""><span style=3D"font-family:Calibri,Arial,Helvetica,sans-ser=
if; font-size:12pt; color:rgb(0,0,0)">Hi Euen,</span></div>
<div style=3D""><span style=3D"font-family:Calibri,Arial,Helvetica,sans-ser=
if; font-size:12pt; color:rgb(0,0,0)"><br>
</span></div>
<div style=3D""><span style=3D"font-family:Calibri,Arial,Helvetica,sans-ser=
if; font-size:12pt; color:rgb(0,0,0)">I know but I am stucking. I am pollin=
g the propery &quot;Operation&quot;. Just when it changes from &quot;idle&q=
uot; to &quot;installing&quot; I subscribe the PropertiesChanged signal
 but without success. I tried several connect strings but all without succe=
ss.&nbsp;</span></div>
<div style=3D""><br>
</div>
<div style=3D""><span style=3D"font-family:Calibri,Arial,Helvetica,sans-ser=
if; font-size:12pt; color:rgb(0,0,0)"><br>
</span></div>
<div style=3D""><span style=3D"font-family:Calibri,Arial,Helvetica,sans-ser=
if; font-size:12pt; color:rgb(128,128,0)">if</span><span style=3D"font-fami=
ly:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(192,192,19=
2)">
</span><span style=3D"font-family:Calibri,Arial,Helvetica,sans-serif; font-=
size:12pt">(QDBusConnection::sessionBus().connect(</span><span style=3D"fon=
t-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,12=
8,0)">&quot;de.pengutronix.rauc&quot;</span><span style=3D"font-family:Cali=
bri,Arial,Helvetica,sans-serif; font-size:12pt">,</span><br>
</div>
<div style=3D"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12p=
t">
<pre style=3D"color:rgb(0,0,0); margin-top:0px; margin-bottom:0px"><span st=
yle=3D"color:#c0c0c0"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nb=
sp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span st=
yle=3D"color:#008000">&quot;/&quot;</span>,</pre>
<pre style=3D"color:rgb(0,0,0); margin-top:0px; margin-bottom:0px"><span st=
yle=3D"color:#c0c0c0"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nb=
sp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span st=
yle=3D"color:#008000">&quot;org.freedesktop.DBus.Properties&quot;</span>,</=
pre>
<pre style=3D"color:rgb(0,0,0); margin-top:0px; margin-bottom:0px"><span st=
yle=3D"color:#c0c0c0"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nb=
sp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span st=
yle=3D"color:#008000">&quot;PropertiesChanged&quot;</span>,</pre>
<pre style=3D"color:rgb(0,0,0); margin-top:0px; margin-bottom:0px"><span st=
yle=3D"color:#c0c0c0"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nb=
sp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span st=
yle=3D"color:#808000">this</span>,</pre>
<pre style=3D"color:rgb(0,0,0); margin-top:0px; margin-bottom:0px"><span st=
yle=3D"color:#c0c0c0"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nb=
sp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span st=
yle=3D"color:#808000">SLOT</span>(propertyChanged(<span style=3D"color:#808=
000">const</span><span style=3D"color:#c0c0c0">&nbsp;</span>QString&amp;<sp=
an style=3D"color:#c0c0c0">&nbsp;</span>,</pre>
<pre style=3D"color:rgb(0,0,0); margin-top:0px; margin-bottom:0px"><span st=
yle=3D"color:#c0c0c0"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nb=
sp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span s=
tyle=3D"color:#808000">const</span><span style=3D"color:#c0c0c0">&nbsp;</sp=
an>QMap&lt;QString,<span style=3D"color:#c0c0c0">&nbsp;</span>QVariant&gt;&=
amp;<span style=3D"color:#c0c0c0">&nbsp;</span>,</pre>
<pre style=3D"color:rgb(0,0,0); margin-top:0px; margin-bottom:0px"><span st=
yle=3D"color:#c0c0c0">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nb=
sp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><s=
pan style=3D"color:#808000">const</span><span style=3D"color:#c0c0c0">&nbsp=
;</span>QStringList&amp;<span style=3D"color:#c0c0c0">&nbsp;</span>))))<spa=
n style=3D"color:#c0c0c0">&nbsp;</span></pre>
<pre style=3D"color:rgb(0,0,0); margin-top:0px; margin-bottom:0px">{</pre>
<pre style=3D"margin-top:0px; margin-bottom:0px"><font color=3D"#c0c0c0">  =
  </font>qDebug()<span style=3D"color:rgb(192,192,192)">&nbsp;</span>&lt;&l=
t;<span style=3D"color:rgb(192,192,192)">&nbsp;</span><span style=3D"color:=
rgb(0,128,0)">&quot;PropertiesChanged</span><span style=3D"color:rgb(192,19=
2,192)">&nbsp;</span><span style=3D"color:rgb(0,128,0)">signal</span><span =
style=3D"color:rgb(192,192,192)">&nbsp;</span><span style=3D"color:rgb(0,12=
8,0)">connected</span><span style=3D"color:rgb(192,192,192)">&nbsp;</span><=
span style=3D"color:rgb(0,128,0)">successfully</span><span style=3D"color:r=
gb(192,192,192)">&nbsp;</span><span style=3D"color:rgb(0,128,0)">to</span><=
span style=3D"color:rgb(192,192,192)">&nbsp;</span><span style=3D"color:rgb=
(0,128,0)">slot&quot;</span>;</pre>
<pre style=3D"color:rgb(0,0,0); margin-top:0px; margin-bottom:0px">}<span s=
tyle=3D"color:#c0c0c0">&nbsp;</span><span style=3D"color:#808000">else</spa=
n><span style=3D"color:#c0c0c0">&nbsp;</span>{</pre>
<pre style=3D"color:rgb(0,0,0); margin-top:0px; margin-bottom:0px"><span st=
yle=3D"color:#c0c0c0">&nbsp; &nbsp;&nbsp;</span>qDebug()<span style=3D"colo=
r:#c0c0c0">&nbsp;</span>&lt;&lt;<span style=3D"color:#c0c0c0">&nbsp;</span>=
<span style=3D"color:#008000">&quot;PropertiesChanged</span><span style=3D"=
color:#c0c0c0">&nbsp;</span><span style=3D"color:#008000">signal</span><spa=
n style=3D"color:#c0c0c0">&nbsp;</span><span style=3D"color:#008000">connec=
tion</span><span style=3D"color:#c0c0c0">&nbsp;</span><span style=3D"color:=
#008000">was</span><span style=3D"color:#c0c0c0">&nbsp;</span><span style=
=3D"color:#008000">not</span><span style=3D"color:#c0c0c0">&nbsp;</span><sp=
an style=3D"color:#008000">successful&quot;</span>;</pre>
<pre style=3D"color:rgb(0,0,0); margin-top:0px; margin-bottom:0px">}</pre>
<br>
</div>
<div>
<div id=3D"x_appendonsend"></div>
<div style=3D"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12p=
t; color:rgb(0,0,0)">
Please can you tell me how to subcribe the PropertiesChanged signal?</div>
<div style=3D"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12p=
t; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex=3D"-1" style=3D"display:inline-block; width:98%">
<div id=3D"x_divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" =
color=3D"#000000" style=3D"font-size:11pt"><b>Von:</b> Eugen.Wiens@JUMO.net=
 &lt;Eugen.Wiens@JUMO.net&gt;<br>
<b>Gesendet:</b> Dienstag, 3. August 2021 08:27<br>
<b>An:</b> Stahl, Michael &lt;mstahl@moba.de&gt;<br>
<b>Cc:</b> RAUC@pengutronix.de &lt;RAUC@pengutronix.de&gt;; RAUC &lt;rauc-b=
ounces@pengutronix.de&gt;<br>
<b>Betreff:</b> Antwort: Re: [RAUC] Antwort: Re: Antwort: Re: Antwort: D-Bu=
s control Qt</font>
<div>&nbsp;</div>
</div>
<div><font size=3D"2" face=3D"sans-serif">Hi Michael,</font><br>
<br>
<font size=3D"2" face=3D"sans-serif">you can connect to a property change o=
n dbus level. That is the way we do it.</font><br>
<br>
<br>
<tt><font size=3D"2">&quot;RAUC&quot; &lt;rauc-bounces@pengutronix.de&gt; s=
chrieb am 03.08.2021 08:21:32:<br>
<br>
&gt; Von: &quot;Stahl, Michael&quot; &lt;mstahl@moba.de&gt;</font></tt><br>
<tt><font size=3D"2">&gt; An: &quot;Eugen.Wiens@JUMO.net&quot; &lt;Eugen.Wi=
ens@JUMO.net&gt;</font></tt><br>
<tt><font size=3D"2">&gt; Kopie: &quot;RAUC&quot; &lt;rauc-bounces@pengutro=
nix.de&gt;, &quot;RAUC@pengutronix.de&quot;
<br>
&gt; &lt;RAUC@pengutronix.de&gt;</font></tt><br>
<tt><font size=3D"2">&gt; Datum: 03.08.2021 08:21</font></tt><br>
<tt><font size=3D"2">&gt; Betreff: Re: [RAUC] Antwort: Re: &nbsp;Antwort: R=
e: &nbsp;Antwort: &nbsp;D-Bus control Qt</font></tt><br>
<tt><font size=3D"2">&gt; Gesendet von: &quot;RAUC&quot; &lt;rauc-bounces@p=
engutronix.de&gt;</font></tt><br>
<tt><font size=3D"2">&gt; <br>
&gt; Hi Eugen,</font></tt><br>
<tt><font size=3D"2">&gt; <br>
&gt; thanks again. I implemented the signal and now I get the signal that<b=
r>
&gt; the update is finished.</font></tt><br>
<tt><font size=3D"2">&gt; But thats the only signal that rauc is provided, =
isn't it? To get
<br>
&gt; the progress I have to poll the property, or are there general <br>
&gt; signals on the dbus that I can connect to?</font></tt><br>
<tt><font size=3D"2">&gt; <br>
&gt; Do you read the property &quot;Progress&quot; like </font></tt><br>
<tt><font size=3D"2">&gt; QDBusInterface iface( &quot;de.pengutronix.rauc&q=
uot;, </font></tt><br>
<tt><font size=3D"2">&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp;&quot;/&quot;,</font></tt><br>
<tt><font size=3D"2">&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp;&quot;de.pengutronix.rauc.Installer&quot;,</font></tt><br>
<tt><font size=3D"2">&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp;QDBusConnection::systemBus() );</font></tt><br>
<tt><font size=3D"2">&gt; QVariant property =3D iface.property(&quot;Progre=
ss&quot;);</font></tt><br>
<tt><font size=3D"2">&gt; MyProgress parameterProgress;</font></tt><br>
<tt><font size=3D"2">&gt; property.value&lt;QDBusArgument&gt;() &gt;&gt; pa=
rameterProgress;</font></tt><br>
<tt><font size=3D"2">&gt; <br>
&gt; or did you use another possibility?</font></tt><br>
<tt><font size=3D"2">&gt; If I use the above I get a message five times and=
 the marshaled data (<br>
&gt; m_Progress, m_Message, ..) are always empty.</font></tt><br>
<tt><font size=3D"2">&gt; QDBusArgument: read from a write-only object<br>
</font></tt><br>
<tt><font size=3D"2">&gt; <br>
&gt; Von: Eugen.Wiens@JUMO.net &lt;Eugen.Wiens@JUMO.net&gt;<br>
&gt; Gesendet: Montag, 2. August 2021 16:53<br>
&gt; An: Stahl, Michael &lt;mstahl@moba.de&gt;<br>
&gt; Cc: RAUC@pengutronix.de &lt;RAUC@pengutronix.de&gt;; RAUC &lt;rauc-<br=
>
&gt; bounces@pengutronix.de&gt;<br>
&gt; Betreff: Antwort: Re: [RAUC] Antwort: Re: Antwort: D-Bus control Qt </=
font></tt><br>
<tt><font size=3D"2">&gt; &nbsp;</font></tt><br>
<tt><font size=3D"2">&gt; Hi Michael,<br>
&gt; <br>
&gt; &quot;RAUC&quot; &lt;rauc-bounces@pengutronix.de&gt; schrieb am 02.08.=
2021 16:29:18:<br>
&gt; <br>
&gt; &gt; Von: &quot;Stahl, Michael&quot; &lt;mstahl@moba.de&gt;<br>
&gt; &gt; An: &quot;Eugen.Wiens@JUMO.net&quot; &lt;Eugen.Wiens@JUMO.net&gt;=
<br>
&gt; &gt; Kopie: RAUC &lt;rauc-bounces@pengutronix.de&gt;, &quot;RAUC@pengu=
tronix.de&quot; <br>
&gt; &gt; &lt;RAUC@pengutronix.de&gt;<br>
&gt; &gt; Datum: 02.08.2021 16:29<br>
&gt; &gt; Betreff: Re: [RAUC] Antwort: Re: &nbsp;Antwort: &nbsp;D-Bus contr=
ol Qt<br>
&gt; &gt; Gesendet von: &quot;RAUC&quot; &lt;rauc-bounces@pengutronix.de&gt=
;<br>
&gt; &gt; <br>
&gt; &gt; Okay, thanks a lot.<br>
&gt; &gt; <br>
&gt; &gt; A last question. Is it correct that I have to poll the &quot;Prog=
ress&quot; <br>
&gt; &gt; property or is there any signal system where I can subcribe to ge=
t a<br>
&gt; &gt; notification at every change of progress status?<br>
&gt; <br>
&gt; We are using a dbus signal. You can connect to it with Qt.<br>
&gt; <br>
&gt; Best regards,<br>
&gt; Eugen </font></tt><br>
<tt><font size=3D"2">&gt; Diese E-Mail kann vertrauliche und/oder rechtlich=
 gesch?tzte
<br>
&gt; Informationen beinhalten und ist ausschlie?lich f?r die im Verteiler<b=
r>
&gt; genannten Personen bestimmt. Das unerlaubte Kopieren sowie die <br>
&gt; unbefugte Weitergabe dieser Mail sind nicht gestattet. Bitte <br>
&gt; benachrichtigen Sie uns gegebenenfalls telefonisch oder mit Antwort-<b=
r>
&gt; Mail, falls Sie nicht der richtige Adressat dieser E-Mail sind. <br>
&gt; Bitte l?schen Sie diese Nachricht und alle Anh?nge dazu unverz?<br>
&gt; glich. Falls nicht ausdr?cklich vermerkt, ist diese E-Mail keine <br>
&gt; rechtlich bindende Vereinbarung.<br>
&gt; <br>
&gt; Kommanditgesellschaft: JUMO GmbH &amp; Co. KG, Sitz: 36039 Fulda, <br>
&gt; Amtsgericht Fulda HRA 302, Pers?nlich haftende Gesellschafterin: M. <b=
r>
&gt; K. JUCHHEIM GmbH, Sitz: 36039 Fulda, Amtsgericht Fulda HRB 17, <br>
&gt; Gesch?ftsf?hrer: Dipl.-Ing. Bernhard Juchheim, Dipl.-Kfm. Michael <br>
&gt; Juchheim, Dipl.-Ing. Dimitrios Charisiadis<br>
&gt; Ust.-Id.-Nr.: DE 112411234____________________________________________=
___<br>
&gt; RAUC mailing list<br>
</font></tt><font face=3D"sans-serif">
<p style=3D"margin-top: 0px; margin-bottom: 0px;"><font size=3D"2" face=3D"=
sans-serif">Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte In=
formationen beinhalten und ist ausschlie?lich f?r die im Verteiler genannte=
n Personen bestimmt. Das unerlaubte Kopieren
 sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet. Bitte ben=
achrichtigen Sie uns gegebenenfalls telefonisch oder mit Antwort-Mail, fall=
s Sie nicht der richtige Adressat dieser E-Mail sind. Bitte l?schen Sie die=
se Nachricht und alle Anh?nge dazu
 unverz?glich. Falls nicht ausdr?cklich vermerkt, ist diese E-Mail keine re=
chtlich bindende Vereinbarung.<br>
<br>
Kommanditgesellschaft: JUMO GmbH &amp; Co. KG, Sitz: 36039 Fulda, Amtsgeric=
ht Fulda HRA 302, Pers?nlich haftende Gesellschafterin: M. K. JUCHHEIM GmbH=
, Sitz: 36039 Fulda, Amtsgericht Fulda HRB 17, Gesch?ftsf?hrer: Dipl.-Ing. =
Bernhard Juchheim, Dipl.-Kfm. Michael
 Juchheim, Dipl.-Ing. Dimitrios Charisiadis<br>
Ust.-Id.-Nr.: DE 112411234</font></p>
</font></div>
</div>
</div>
</div>
</body>
</html>

--_000_AM9PR09MB4756BB53803B285E7885CB46DBF09AM9PR09MB4756eurp_--


--===============1795267209==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
RAUC mailing list

--===============1795267209==--