Nepomuk-Core
#include <plaintextextractor.h>
Public Member Functions | |
PlainTextExtractor (QObject *parent, const QVariantList &) | |
virtual ExtractingCritera | criteria () |
virtual SimpleResourceGraph | extract (const QUrl &resUri, const QUrl &fileUrl, const QString &mimeType) |
virtual bool | shouldExtract (const QUrl &url, const QString &mimeType) |
Public Member Functions inherited from Nepomuk2::ExtractorPlugin | |
ExtractorPlugin (QObject *parent) | |
virtual | ~ExtractorPlugin () |
virtual QStringList | mimetypes () |
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 plaintextextractor.h.
Constructor & Destructor Documentation
Nepomuk2::PlainTextExtractor::PlainTextExtractor | ( | QObject * | parent, |
const QVariantList & | |||
) |
Definition at line 33 of file plaintextextractor.cpp.
Member Function Documentation
|
inlinevirtual |
Returns the critera that is being used for determining if this plugin can index the files provided to it.
By default this returns BasicMimeType
- See also
- mimetypes
- shouldExtract
Reimplemented from Nepomuk2::ExtractorPlugin.
Definition at line 33 of file plaintextextractor.h.
|
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 45 of file plaintextextractor.cpp.
|
virtual |
By default this returns true if mimetype
is in the list of mimetypes provided by the plugin.
If this function has been reimplemented then the ExtractingCritera should be changed.
Reimplemented from Nepomuk2::ExtractorPlugin.
Definition at line 39 of file plaintextextractor.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.