Bringing KIO support to the Collection Scanner
Jos van den Oever
jos at vandenoever.info
Tue Oct 26 19:02:55 CEST 2010
> I'm not really aware of the complexity of this task, but could this be
> a Google Code-In task?
> I'm willing to mentor.
It depends on how much the current code needs to change. I assume that the
code to enter data in the database will stay the same (same SQL). Then there
are a few tasks:
- write an implementation of Strigi::InputStream that reads from a KIO. see
e.g. [1] where a QIODevice is wrapped
- write a Strigi::AnalyzerConfiguration implementation that selects for
music information, look in strigi source code for an example and also in [1]
- implement a Strigi::IndexWriter that passes the info that comes in via
addValue into the database
- adapt the scanner to use Strigi to index. See e.g.
KFileMetaInfoPrivate::init in [1].
All in all if you're new to C++ quite some work, but there are quite some
examples which do similar thing, but not quite the same.
Cheers,
Jos
[1] KDE/kdelibs/kio/kio/kfilemetainfo.cpp
More information about the Amarok-devel
mailing list