[Okular-devel] API change of Generator::generateDocumentSynopsis, documentation needed

Friedrich W. H. Kossebau kossebau at kde.org
Tue Sep 9 10:00:56 UTC 2014


Am Dienstag, 9. September 2014, 11:45:47 schrieb Albert Astals Cid:
> El Dimarts, 9 de setembre de 2014, a les 11:09:48, Friedrich W. H. Kossebau
> va
> escriure:
> > Hi Albert,
> > 
> > recently the API of Okular::Generator was changed, the signature of
> > generateDocumentSynopsis(...) changed from
> > 
> > 	virtual const DocumentInfo * generateDocumentInfo();
> > 
> > to
> > 
> > 	virtual DocumentInfo generateDocumentInfo(
> > 	
> > 		const QSet<DocumentInfo::Key> &keys ) const;
> > 
> > See
> > https://projects.kde.org/projects/kde/kdegraphics/okular/repository/revisi
> > on s/e9e3d4a4353a247290d790b2104740913e0f0f7f
> > 
> > Request:
> > As an external provider of Generator plugins (ODT/DOC/DOCX/ODP/PPT/PPTX by
> > Calligra) I ask for
> > * documenting the purpose of the parameter "keys", unclear to me
> 
> It's the keys/data you're being asked for (you can return more but the
> caller does not care). Does that make sense now? Any suggestion of which
> wording would you use?

Okay, that makes sense. No proposal for wording, though.

> > * documenting the Okular version where this variant of method got in
> 
> 0.21, i.e. still unreleased. Added that to the .h now.

K, thanks.

> > In exchange I would pay for that with providing a patch to update
> > http://api.kde.org/4.x-api/kdegraphics-apidocs/okular/html/okular_generato
> > rs .html :)
> 
> Cool :)

RR should arrive later today now :)

Cheers
Friedrich



More information about the Okular-devel mailing list