KLoadFileMetaDataThread Class Reference
Loads the meta data of files that are required by the widget KMetaDataWidget. More...
#include <kloadfilemetadatathread_p.h>

Signals | |
| void | finished (QThread *thread) |
Public Member Functions | |
| KLoadFileMetaDataThread () | |
| virtual | ~KLoadFileMetaDataThread () |
| void | cancel () |
| QHash< KUrl, Nepomuk::Variant > | data () const |
| void | load (const KUrl::List &urls) |
| virtual void | run () |
Detailed Description
Loads the meta data of files that are required by the widget KMetaDataWidget.
Is used in KMetaDataModel.
Definition at line 39 of file kloadfilemetadatathread_p.h.
Constructor & Destructor Documentation
| KLoadFileMetaDataThread::KLoadFileMetaDataThread | ( | ) |
Definition at line 51 of file kloadfilemetadatathread.cpp.
| KLoadFileMetaDataThread::~KLoadFileMetaDataThread | ( | ) | [virtual] |
Definition at line 57 of file kloadfilemetadatathread.cpp.
Member Function Documentation
| void KLoadFileMetaDataThread::cancel | ( | ) |
Tells the thread that it should cancel as soon as possible.
It is undefined when the thread gets cancelled. The signal finished() will emitted after the cancelling has been done.mergedIt
Definition at line 75 of file kloadfilemetadatathread.cpp.
| QHash< KUrl, Nepomuk::Variant > KLoadFileMetaDataThread::data | ( | ) | const |
Returns the meta data for the URLs given by KLoadFileMetaDataThread::load().
The method only provides valid results after the signal finished() has been emitted.
Definition at line 69 of file kloadfilemetadatathread.cpp.
| void KLoadFileMetaDataThread::finished | ( | QThread * | thread | ) | [signal] |
Is emitted if the thread has finished the loading.
KMetaDataModel requires the information which thread has been finished, hence the thread is passed as parameter (using QObject::sender() would be an alternative, but it is less understandable).
| void KLoadFileMetaDataThread::load | ( | const KUrl::List & | urls | ) |
Starts the thread and loads the meta data for the files given by urls.
After receiving the signal finished(), the method KLoadFileMetaDataThread::data() provides the loaded meta data.
Definition at line 61 of file kloadfilemetadatathread.cpp.
| void KLoadFileMetaDataThread::run | ( | ) | [virtual] |
- See also:
- QThread::run()
Definition at line 82 of file kloadfilemetadatathread.cpp.
The documentation for this class was generated from the following files:
KDE 4.6 API Reference