• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

Nepomuk-Core

  • Nepomuk2
  • PlainTextExtractor
Public Member Functions | List of all members
Nepomuk2::PlainTextExtractor Class Reference

#include <plaintextextractor.h>

Inheritance diagram for Nepomuk2::PlainTextExtractor:
Inheritance graph
[legend]

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

virtual ExtractingCritera Nepomuk2::PlainTextExtractor::criteria ( )
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.

SimpleResourceGraph Nepomuk2::PlainTextExtractor::extract ( const QUrl &  resUri,
const QUrl &  fileUrl,
const QString &  mimeType 
)
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
resUriThe resource uri of the fileUrl which should be used in the SimpleResource
fileUrlThe url of the file being indexed
mimeTypethe mimetype of the file url

Implements Nepomuk2::ExtractorPlugin.

Definition at line 45 of file plaintextextractor.cpp.

bool Nepomuk2::PlainTextExtractor::shouldExtract ( const QUrl &  url,
const QString &  mimeType 
)
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:
  • plaintextextractor.h
  • plaintextextractor.cpp
This file is part of the KDE documentation.
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.

Nepomuk-Core

Skip menu "Nepomuk-Core"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal