[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: [PATCH] devicenotifier and dolphin interactive problem
From:       Kevin Ottens <ervin () kde ! org>
Date:       2010-01-17 11:20:20
Message-ID: 201001171220.20692.ervin () kde ! org
[Download RAW message or body]


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

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic