Having kfm refresh from a KParts::Plugin
David Faure
faure at kde.org
Fri Aug 27 08:59:32 BST 2004
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