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

Nepomuk-Core

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

#include <indexer.h>

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

Public Member Functions

 Indexer (QObject *parent=0)
 
 ~Indexer ()
 
bool indexFile (const KUrl &url)
 
Nepomuk2::SimpleResourceGraph indexFileGraph (const QUrl &url)
 
QString lastError () const
 

Detailed Description

The one entry point to indexing files.

The Indexer can be used to index any file on the local file system or stored in some other place like an email attachment. The resulting data is automatically stored into the Nepomuk database. The Indexer automatically removes previous data and makes sure the resource URI does not change.

This class is also used by the Nepomuk file indexing service.

Author
Sebastian Trueg trueg.nosp@m.@kde.nosp@m..org

Definition at line 36 of file indexer.h.

Constructor & Destructor Documentation

Nepomuk2::Indexer::Indexer ( QObject *  parent = 0)

Create a new indexer.

Definition at line 56 of file indexer.cpp.

Nepomuk2::Indexer::~Indexer ( )

Destructor.

Definition at line 62 of file indexer.cpp.

Member Function Documentation

bool Nepomuk2::Indexer::indexFile ( const KUrl &  url)

Index a single local file or folder (files in a folder will not be indexed recursively).

This method just calls the appropriate file indexing plugins and then saves the graph.

Definition at line 67 of file indexer.cpp.

Nepomuk2::SimpleResourceGraph Nepomuk2::Indexer::indexFileGraph ( const QUrl &  url)

Extracts the SimpleResourceGraph of the local file or folder and returns it.

This is used in the rare cases when one does not wish to index the file, one just wants to see the indexed information

Definition at line 195 of file indexer.cpp.

QString Nepomuk2::Indexer::lastError ( ) const

Definition at line 216 of file indexer.cpp.


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