[SailfishDevel] rpminstall signal packageStatusChanged

Andrey Kozhevnikov coderusinbox at gmail.com
Thu Jun 12 17:05:23 UTC 2014


works for me:

QDBusConnection::sessionBus().connect("com.jolla.jollastore", 
"/StoreClient", "com.jolla.jollastore", "packageStatusChanged", this, 
SIGNAL(onPackageStatusChanged(QString,int)));

void TestApp::onPackageStatusChanged(const QString &package, int status)
{
     qDebug() << "packageStatusChanged" << package << status;
}

12.06.2014 22:34, Kimmo Lindholm ?????:
>
> 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"
>
>
>
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140612/8301c861/attachment-0001.html>


More information about the Devel mailing list