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

Nepomuk-Core

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

#include <odfextractor.h>

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

Public Member Functions

 OdfExtractor (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 odfextractor.h.

Constructor & Destructor Documentation

OdfExtractor::OdfExtractor ( QObject *  parent,
const QVariantList &   
)

Definition at line 39 of file odfextractor.cpp.

Member Function Documentation

SimpleResourceGraph OdfExtractor::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 54 of file odfextractor.cpp.

QStringList OdfExtractor::mimetypes ( )
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 44 of file odfextractor.cpp.


The documentation for this class was generated from the following files:
  • odfextractor.h
  • odfextractor.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