Problems with Solid in kio-slave (Slots not called, properties not updated)

2013-02-11 Thread Philipp Schmidt
Hi, I would like my kio_mtp slave to be notified by Solid::DeviceNotifier events. However I can't get the Solid::Devicenotifier to work within my helper thread, as slots apparently can't be called from slave itself. A QTimer::singleShot() works fine. The exact same code, put into a simple QCore

Re: Problems with Solid in kio-slave (Slots not called, properties not updated)

2013-02-11 Thread Alex Fiestas
On Monday 11 February 2013 16:54:30 Philipp Schmidt wrote: > Hi, > > I would like my kio_mtp slave to be notified by Solid::DeviceNotifier > events. However I can't get the Solid::Devicenotifier to work within my > helper thread, as slots apparently can't be called from slave itself. A > QTimer::s

Re: Problems with Solid in kio-slave (Slots not called, properties not updated)

2013-02-11 Thread Philipp Schmidt
Am Montag, 11. Februar 2013, 18:33:59 schrieb Alex Fiestas: > On Monday 11 February 2013 16:54:30 Philipp Schmidt wrote: > > I would like my kio_mtp slave to be notified by Solid::DeviceNotifier > > events. However I can't get the Solid::Devicenotifier to work within my > > helper thread, as slots

Re: Problems with Solid in kio-slave (Slots not called, properties not updated)

2013-02-12 Thread David Narvaez
On Mon, Feb 11, 2013 at 12:45 PM, Philipp Schmidt wrote: > Hi Alex, > > that's exactly why I created a separate Thread and moved the Objects that > need > to have slots called there. I just altered my little example and if I set > the > timer to normal recurring (not single shot) the slot gets cal

Re: Problems with Solid in kio-slave (Slots not called, properties not updated)

2013-02-12 Thread Philipp Schmidt
Hi David, Am Dienstag, 12. Februar 2013, 13:41:23 schrieb David Narvaez: > I have been debugging exactly the same situation in the Activities KIO > Slave. I tried putting the affected parts in their own thread, and > that didn't work. Right now I have a processEvents() call before using > those ob

Re: Problems with Solid in kio-slave (Slots not called, properties not updated)

2013-02-12 Thread Philipp Schmidt
Am Dienstag, 12. Februar 2013, 13:41:23 schrieb David Narvaez: > The implementation that went into 4.10 depends on no signal/slots and > that works, but it is of course less efficient. I've given up for the > moment in trying to find a solution, but if you manage to solve your > situation please le

Re: Problems with Solid in kio-slave (Slots not called, properties not updated)

2013-02-13 Thread David Narvaez
On Tue, Feb 12, 2013 at 4:40 PM, Philipp Schmidt wrote: > Am Dienstag, 12. Februar 2013, 13:41:23 schrieb David Narvaez: >> The implementation that went into 4.10 depends on no signal/slots and >> that works, but it is of course less efficient. I've given up for the >> moment in trying to find a s

Re: Problems with Solid in kio-slave (Slots not called, properties not updated)

2013-03-11 Thread Philipp Schmidt
Hi, Am Mittwoch, 13. Februar 2013, 08:06:35 schrieb David Narvaez: > > I have been browsing projects.kde.org for half an hour now and can't find > > the piece of code you mentioned. Could you maybe point me into the right > > direction? :D > > The relevant commit is here[0], I have local changes