Nepomuk-Core
#include <indexingqueue.h>
Public Slots | |
void | resume () |
void | suspend () |
Signals | |
void | finishedIndexing () |
void | startedIndexing () |
Public Member Functions | |
IndexingQueue (QObject *parent=0) | |
virtual void | fillQueue () |
virtual bool | isEmpty ()=0 |
void | setDelay (int msec) |
Protected Slots | |
void | callForNextIteration () |
void | finishIteration () |
Protected Member Functions | |
virtual void | processNextIteration ()=0 |
Detailed Description
An abstract class representing the queue.
All indexing queues should be derived from this queue.
Definition at line 36 of file indexingqueue.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 29 of file indexingqueue.cpp.
Member Function Documentation
|
protectedslot |
Definition at line 64 of file indexingqueue.cpp.
|
virtual |
fill the queue if there is available data, return true if something is enqueued.
Should be used in combinition with isEmpty()
Default implementation will do nothing.
Reimplemented in Nepomuk2::FileIndexingQueue.
Definition at line 36 of file indexingqueue.cpp.
|
signal |
Will automatically be emitted after an iteration if empty returns true.
|
protectedslot |
Call this function when you have finished processing the iteration from processNextIteration.
- See also
- processNextIteration
Definition at line 81 of file indexingqueue.cpp.
|
pure virtual |
Implemented in Nepomuk2::BasicIndexingQueue, and Nepomuk2::FileIndexingQueue.
|
protectedpure virtual |
Process the next iteration in your queue.
Once you are done processing the file call finishIndexingFile so that the queue can continue processing and call this function when it is ready for the next iteration.
- See also
- finishIndexingFile
Implemented in Nepomuk2::BasicIndexingQueue, and Nepomuk2::FileIndexingQueue.
|
slot |
Definition at line 51 of file indexingqueue.cpp.
void Nepomuk2::IndexingQueue::setDelay | ( | int | msec | ) |
Sets a artificial delay between each call to processNextIteration.
This can be used to slow down the indexing, in order to conserve resources.
Definition at line 89 of file indexingqueue.cpp.
|
signal |
The derived queues must emit this signal when their queue gets filled up.
|
slot |
Definition at line 59 of file indexingqueue.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.