Review Request: Update KFileItem and KFileMetaPropsPlugin to only request limited metaData (avoid reading all the file and blocking the UI)

Jos van den Oever Jos.van.den.Oever at
Thu Mar 25 08:15:42 GMT 2010

On Wednesday 24 March 2010 22:03:40 Darío Andrés wrote:
> Things to discuss:
> - If we choose my implementation we should probably state it on KFileInfo
> apidox ("metaInfo defaults to X, Z. Query your own KFileMetaInfo if you
> need more")
> - Should we preserve the KFileMetaInfo::What flag (and
> implement it on a future using Strigi); or should the flag be removed and
> another flag added (something like ScanAllTheFile, ScanTheFirstKBs) ?

You can tell Strigi what information to retrieve by stating the names of the 
fields from the ontologies you would like in AnalyzerConfiguration. A mapping 
from KFileMetaInfo::What to collections of these field names is possible.

> - Should we default to reading only the first 64kb of every file (as the
> previous approach) and introduce a new value of the flag
> "EverythingAllTheFile" (seems redundant) for Nick to use on Lokalize ?

There is currently no generic way to know how much of a file must be read to 
retrieve the value of a particular field.


Jos van den Oever, software architect
+49 391 25 19 15 53

More information about the kde-core-devel mailing list