Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KIO::PreviewJob Class Reference

#include <previewjob.h>

Inheritance diagram for KIO::PreviewJob:

KIO::Job List of all members.

Signals

void gotPreview (const KFileItem *item, const QPixmap &preview)
void failed (const KFileItem *item)

Public Methods

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

This class catches a preview (thumbnail) for files

Definition at line 36 of file previewjob.h.


Member Function Documentation

QStringList KIO::PreviewJob::availablePlugins   [static]
 

Returns:
a list of all available preview plugins. The list contains the basenames of the plugins' .desktop files (no path, no .desktop).

void KIO::PreviewJob::failed const KFileItem   item [signal]
 

Emitted when a thumbnail for item could not be created, either because a ThumbCreator for its MIME type does not exist, or because something went wrong.

void KIO::PreviewJob::gotPreview const KFileItem   item,
const QPixmap &    preview
[signal]
 

Emitted when a thumbnail picture for item has been successfully retrieved.

void KIO::PreviewJob::removeItem const KFileItem   item
 

Removes an item from preview processing. Use this if you passed an item to filePreview and want to delete it now.

Parameters:
item  the item that should be removed from the preview queue

virtual void KIO::PreviewJob::slotResult KIO::Job   job [protected, virtual, slot]
 

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.

QStringList KIO::PreviewJob::supportedMimeTypes   [static]
 

Returns:
a list of all supported MIME types. The list can contain entries like text/ * (without the space).


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:33 2003 for kdelibs by doxygen1.2.18