Sending boolean value using qdbus always yields true
Thiago Macieira
thiago at kde.org
Thu Dec 24 15:48:37 GMT 2009
Em Quinta-feira 24. Dezembro 2009, às 13.10.36, Christian Esken escreveu:
> Hello,
>
> I have a problem with qdbus. No matter what I pass on the command line, I
> always receive true. Details are on b.k.o. (Bug 201940), and Thiago says,
> it is not a Qt issue.
>
> I added a debug statement to KMix [1], and it shows the effect clearly [2].
>
> Does anybody know what is going on here? This is for a long time (bug
> report from July 2009), and also for recent builds (via the openSUSE
> build: KDE:Qt46 and KDE:KDE4:UNSTABLE:Desktop).
Run both apps (qdbus and kmix) with QDBUS_DEBUG=1.
Watch the messages sent and received. See if they contain that "false".
> [1]
> void Mixer::setMute( const QString& mixdeviceID, bool on )
> {
> + qDebug() << "Mixer::setMute():" << mixdeviceID << " = " << on;
>
> [2]
> # qdbus org.kde.kmix /Mixer0 setMute CD:0 false
> Mixer::setMute(): "CD:0" = true
> # qdbus org.kde.kmix /Mixer0 setMute CD:0 true
> Mixer::setMute(): "CD:0" = true
> # qdbus org.kde.kmix /Mixer0 setMute CD:0 1
> Mixer::setMute(): "CD:0" = true
> # qdbus org.kde.kmix /Mixer0 setMute CD:0 0
> Mixer::setMute(): "CD:0" = true
>
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20091224/b014def3/attachment.sig>
More information about the kde-core-devel
mailing list