Nepomuk rocks - Use case on Dolphin
David Faure
faure at kde.org
Thu Jun 21 20:30:34 BST 2007
On Thursday 21 June 2007, Rafael Fernández López wrote:
> You can find the patches for kdelibs and kdebase/apps/dolphin at:
>
> http://media.ereslibre.es/2007/06/kdelibs-21062007.diff
I don't see the need for KDirModel::resourceForIndex, which makes libkio link to nepomuk.
This method takes 2 lines, and isn't used internally in kdirmodel, so why not just call
those two lines from dolphin? It's all public API:
KFileItem* item = myDirModel->itemForIndex( index );
Nepomuk::Resource res( item->url().url(), Nepomuk::NFO::File() );
--
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 kde-core-devel
mailing list