[PATCH] devicenotifier and dolphin interactive problem
Kevin Ottens
ervin at kde.org
Sun Jan 17 11:20:20 GMT 2010
On Thursday 7 January 2010 08:59:14 sonald wrote:
> I don't know if I understood correctly. dataChanged only affects
> KFilePlacesView and there is no way for an client like dolphin to know it.
Well that was exactly my point: you can. From the view you can get the model
and just connect to its dataChanged signal.
> I see that only connection
> between dolphin and PlacesPanel is the
> urlChanged signal. I believe that's not enough to solve the problems I
> mentioned in the patch, cause I
> need to know the url and state(removed/mounted) to do the right thing.
> maybe it's not so good as to
> the final solution.
Well, I'd connect to dataChanged, and then query the state of the item which
changed, by querying back the model you should find out the mount/unmounted
state at hand there and the URL.
Regards.
--
Kévin Ottens, http://ervin.ipsquad.net
KDAB - proud patron of KDE, http://www.kdab.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20100117/bb82f39d/attachment.sig>
More information about the kde-core-devel
mailing list