Having kfm refresh from a KParts::Plugin

Joe Roback joe.roback at gmail.com
Mon Aug 30 06:59:31 BST 2004


That worked.
But if the user calls the format from a directory other the root, i.e.
myprotocol:/FOO, I would need the directory listing to also go to
myprotocol:/... any thoughts on that? thanks. much appreciated.

joe

On Fri, 27 Aug 2004 09:59:32 +0200, David Faure <faure at kde.org> wrote:
> 
> 
> On Friday 27 August 2004 07:58, Joe Roback wrote:
> > Hi All,
> >
> > I have a kioslave and a KParts::Plugin. From the plugin I make a
> > KIO::special() to make the kioslave format the device, but when the
> > formating finished(), i want to refresh the directory listing...
> >
> > I have tried a few things like making a ListJob and simply calling the
> > listDir() from inside the kioslave... I have had no luck. thanks for
> > any help.
> 
> Try using KDirNotify to signal that the directory has changed (FilesAdded signal for instance),
> then the view will refresh the listing. See kio/job.cpp for example usage of KDirNotify_stub.
> 
> --
> David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
> Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
>




More information about the kfm-devel mailing list