Nepomuk-Core
#include <popplerextractor.h>
Public Member Functions | |
PopplerExtractor (QObject *parent, const QVariantList &) | |
virtual SimpleResourceGraph | extract (const QUrl &resUri, const QUrl &fileUrl, const QString &mimeType) |
virtual QStringList | mimetypes () |
Public Member Functions inherited from Nepomuk2::ExtractorPlugin | |
ExtractorPlugin (QObject *parent) | |
virtual | ~ExtractorPlugin () |
virtual ExtractingCritera | criteria () |
virtual bool | shouldExtract (const QUrl &url, const QString &mimeType) |
Additional Inherited Members | |
Public Types inherited from Nepomuk2::ExtractorPlugin | |
enum | ExtractingCritera { BasicMimeType = 1, Custom = 2 } |
Static Public Member Functions inherited from Nepomuk2::ExtractorPlugin | |
static QList< SimpleResource > | contactsFromString (const QString &string) |
static QDateTime | dateTimeFromString (const QString &dateString) |
static int | maxPlainTextSize () |
static void | resetMaxPlainTextSize () |
static void | setMaxPlainTextSize (int size) |
Detailed Description
Definition at line 32 of file popplerextractor.h.
Constructor & Destructor Documentation
Nepomuk2::PopplerExtractor::PopplerExtractor | ( | QObject * | parent, |
const QVariantList & | |||
) |
Definition at line 36 of file popplerextractor.cpp.
Member Function Documentation
|
virtual |
The main function of the plugin that is responsible for extracting the data from the file url and returning a SimpleResourceGraph.
It does so on the basis of the mimetype provided.
- Parameters
-
resUri The resource uri of the fileUrl which should be used in the SimpleResource fileUrl The url of the file being indexed mimeType the mimetype of the file url
Implements Nepomuk2::ExtractorPlugin.
Definition at line 51 of file popplerextractor.cpp.
|
virtual |
Provide a list of mimetypes which are supported by this plugin.
Only files with those mimetypes will be provided to the plugin via the extract function.
- Returns
- A StringList containing the mimetypes.
- See also
- extract
Reimplemented from Nepomuk2::ExtractorPlugin.
Definition at line 42 of file popplerextractor.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.