[SailfishDevel] rpminstall signal packageStatusChanged
Kimmo Lindholm
Kimmo.Lindholm at eke.fi
Thu Jun 12 16:34:44 UTC 2014
does QDBusConnection::sessionBus().lastError().message() give any details on error?
From: devel-bounces at lists.sailfishos.org [mailto:devel-bounces at lists.sailfishos.org] On Behalf Of Mikael Hermansson
Sent: Thursday, June 12, 2014 10:25 AM
To: sailfish-devel
Subject: [SailfishDevel] rpminstall signal packageStatusChanged
I want to connect to the signal packageStatusChanged from the harbour FAQ I read this:
signal path=/StoreClient; interface=com.jolla.jollastore; member=packageStatusChanged
string "filename.rpm"
int32 0 (not installed?), 1 (installed?) and 2 (progressing?)
But I have problem getting the receive the signal from jollastore in my app I connect to the store using QDBus API :
result = QDBusConnection::sessionBus().connect("com.jolla.jollastore", "/StoreClient", "com.jolla.jollastore" ,"packageStatusChanged", this, SLOT(onPackageStatusChanged(QString,int)));
qDebug() << "DBUSconnect== " << result;
However the signal seems not connect since it returns:
[D] RpmInstall::RpmInstall:19 - DBUSconnect== false
the signal is not emited... Any idea what I do wrong?
Regards
Mikael
--
"Put mankind back on earth"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140612/24d1d36d/attachment.html>
More information about the Devel
mailing list