Nepomuk-Core
#include <indexer.h>
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.
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:
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.