KIO::PreviewJob Class Reference
KIO Job to get a thumbnail picture. More...
#include <previewjob.h>
Inheritance diagram for KIO::PreviewJob:

Signals | |
void | gotPreview (const KFileItem *item, const QPixmap &preview) |
void | failed (const KFileItem *item) |
Public Methods | |
PreviewJob (const KFileItemList &items, int width, int height, int iconSize, int iconAlpha, bool scale, bool save, const QStringList *enabledPlugins, bool deleteItems=false) | |
void | removeItem (const KFileItem *item) |
Static Public Methods | |
QStringList | availablePlugins () |
QStringList | supportedMimeTypes () |
Protected Slots | |
virtual void | slotResult (KIO::Job *job) |
Protected Methods | |
virtual void | virtual_hook (int id, void *data) |
Detailed Description
KIO Job to get a thumbnail picture.This class catches a preview (thumbnail) for files.
Definition at line 37 of file previewjob.h.
Constructor & Destructor Documentation
|
Creates a new PreviewJob.
Definition at line 111 of file previewjob.cpp. References QDir::homeDirPath(), and QTimer::singleShot(). |
Member Function Documentation
|
Removes an item from preview processing. Use this if you passed an item to filePreview and want to delete it now.
Definition at line 209 of file previewjob.cpp. References QPtrList< Job >::first(), and QPtrList< Job >::removeFirst(). |
|
Returns a list of all available preview plugins. The list contains the basenames of the plugins' .desktop files (no path, no .desktop).
Definition at line 479 of file previewjob.cpp. References QValueList::begin(), QValueList::end(), KTrader::query(), KIO::Job::result(), and KTrader::self(). |
|
Returns a list of all supported MIME types. The list can contain entries like text/ * (without the space).
Definition at line 489 of file previewjob.cpp. References QValueList::begin(), QValueList::end(), KTrader::query(), KIO::Job::result(), and KTrader::self(). Referenced by KFileIconView::showPreviews(). |
|
Emitted when a thumbnail picture for
|
|
Emitted when a thumbnail for
|
|
Called whenever a subjob finishes. Default implementation checks for errors and propagates to parent job, then calls removeSubjob. Override if you don't want subjobs errors to be propagated.
Reimplemented from KIO::Job. Definition at line 256 of file previewjob.cpp. References QValueList< UDSAtom >::begin(), QValueList< UDSAtom >::end(), KIO::Job::error(), KIO::filesize_t, QPtrList< Job >::isEmpty(), QFile::remove(), and QPtrList< Job >::remove(). |
The documentation for this class was generated from the following files: