NepomukDaemons
Nepomuk::IndexScheduler Class Reference
The IndexScheduler performs the normal indexing, ie. More...
#include <indexscheduler.h>

Public Slots | |
void | analyzeResource (const QUrl &uri, const QDateTime &modificationTime, QDataStream &data) |
void | resume () |
void | setSuspended (bool) |
void | stop () |
void | suspend () |
void | updateAll () |
void | updateDir (const QString &path) |
Signals | |
void | indexingFolder (const QString &) |
void | indexingStarted () |
void | indexingStopped () |
Public Member Functions | |
QString | currentFolder () const |
IndexScheduler (Strigi::IndexManager *manager, QObject *parent) | |
bool | isIndexing () const |
bool | isSuspended () const |
~IndexScheduler () |
Detailed Description
The IndexScheduler performs the normal indexing, ie.the initial indexing and the timed updates of all files.
Events are not handled.
Definition at line 48 of file indexscheduler.h.
Constructor & Destructor Documentation
Nepomuk::IndexScheduler::IndexScheduler | ( | Strigi::IndexManager * | manager, | |
QObject * | parent | |||
) |
Definition at line 100 of file indexscheduler.cpp.
Nepomuk::IndexScheduler::~IndexScheduler | ( | ) |
Definition at line 114 of file indexscheduler.cpp.
Member Function Documentation
void Nepomuk::IndexScheduler::analyzeResource | ( | const QUrl & | uri, | |
const QDateTime & | modificationTime, | |||
QDataStream & | data | |||
) | [slot] |
Analyze a resource that is not read from the local harddisk.
- Parameters:
-
uri The resource URI to identify the resource. modificationTime The modification date of the resource. Used to determine if an actual update is necessary. The data to analyze, ie. the contents of the resource.
Definition at line 441 of file indexscheduler.cpp.
QString Nepomuk::IndexScheduler::currentFolder | ( | ) | const |
The folder currently being indexed.
Empty if not indexing. If suspended the folder might still be set!
Definition at line 173 of file indexscheduler.cpp.
void Nepomuk::IndexScheduler::indexingFolder | ( | const QString & | ) | [signal] |
void Nepomuk::IndexScheduler::indexingStarted | ( | ) | [signal] |
void Nepomuk::IndexScheduler::indexingStopped | ( | ) | [signal] |
bool Nepomuk::IndexScheduler::isIndexing | ( | ) | const |
Definition at line 167 of file indexscheduler.cpp.
bool Nepomuk::IndexScheduler::isSuspended | ( | ) | const |
Definition at line 161 of file indexscheduler.cpp.
void Nepomuk::IndexScheduler::resume | ( | ) | [slot] |
Definition at line 129 of file indexscheduler.cpp.
void Nepomuk::IndexScheduler::setSuspended | ( | bool | suspended | ) | [slot] |
Definition at line 139 of file indexscheduler.cpp.
void Nepomuk::IndexScheduler::stop | ( | ) | [slot] |
Definition at line 148 of file indexscheduler.cpp.
void Nepomuk::IndexScheduler::suspend | ( | ) | [slot] |
Definition at line 120 of file indexscheduler.cpp.
void Nepomuk::IndexScheduler::updateAll | ( | ) | [slot] |
void Nepomuk::IndexScheduler::updateDir | ( | const QString & | path | ) | [slot] |
Slot to connect to certain event systems like KDirNotify or KDirWatch.
Updates a complete folder (non-recursively). Makes sense for signals like KDirWatch::dirty.
Definition at line 364 of file indexscheduler.cpp.
The documentation for this class was generated from the following files: