Logo Search packages:      
Sourcecode: kat version File versions  Download package

FulltextExtractor Class Reference

#include <fulltextextractorbase.h>

Inherited by GnumericExtractor, KatExternalExtractor, KOFFICEExtractor, OOExtractor, PDFExtractor, and TextExtractor.

List of all members.


Detailed Description

Baseclass for fulltext extraction plugins.

This is the baseclass for "fulltext-plugins" in KDE. With the fulltext kioslave you can convert a file in any supported format into xml-annotated plain text.

What you need to do to create and register a FulltextExtractor:

Compile your FulltextExtractor as a module. The contents of Makefile.am need to look like this:
 INCLUDES = $(all_includes)
 kde_module_LTLIBRARIES = fulltext_myformat.la
 fulltext_myformat_la_SOURCES = yourthumbcreator.cpp
 fulltext_myformat_la_LIBADD = $(LIB_KIO)
 fulltext_myformat_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN)
 kde_services_DATA = fulltext_myformat.desktop

You can supply a comma-separated list of mimetypes to the MimeTypes entry, naming all mimetypes your FulltextExtractor supports. You can also use simple wildcards, like (where you see [slash], put a /)
              text[slash]* or image[slash]*.

Definition at line 80 of file fulltextextractorbase.h.


Public Member Functions

virtual void extract (QString &data)=0

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index