Nepomuk-Core
#include <officeextractor.h>
Public Member Functions | |
OfficeExtractor (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 28 of file officeextractor.h.
Constructor & Destructor Documentation
Nepomuk2::OfficeExtractor::OfficeExtractor | ( | QObject * | parent, |
const QVariantList & | |||
) |
Definition at line 31 of file officeextractor.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 55 of file officeextractor.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 50 of file officeextractor.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.