org.kde.koala

Class PreviewJob

public class PreviewJob extends Job

See PreviewJobSignals for signals emitted by PreviewJob
Constructor Summary
protected PreviewJob(Class dummy)
PreviewJob(ArrayList items, int width, int height, int iconSize, int iconAlpha, boolean scale, boolean save, String[] enabledPlugins, boolean deleteItems)
Creates a new PreviewJob.
PreviewJob(ArrayList items, int width, int height, int iconSize, int iconAlpha, boolean scale, boolean save, String[] enabledPlugins)
Method Summary
static ArrayListavailablePlugins()
Returns a list of all available preview plugins.
StringclassName()
protected voidcreateThumbnail(String arg1)
protected voidgetOrCreateThumbnail()
QMetaObjectmetaObject()
voidremoveItem(KFileItem item)
Removes an item from preview processing.
voidsetIgnoreMaximumSize(boolean ignoreSize)
If ignoreSize is true, then the preview is always generated regardless of the settings
voidsetIgnoreMaximumSize()
protected voidslotResult(Job job)
protected booleanstatResultThumbnail()
static ArrayListsupportedMimeTypes()
Returns a list of all supported MIME types.

Constructor Detail

PreviewJob

protected PreviewJob(Class dummy)

PreviewJob

public PreviewJob(ArrayList items, int width, int height, int iconSize, int iconAlpha, boolean scale, boolean save, String[] enabledPlugins, boolean deleteItems)
Creates a new PreviewJob.

Parameters: items a list of files to create previews for width the desired width height the desired height, 0 to use the width iconSize the size of the mimetype icon to overlay over the preview or zero to not overlay an icon. This has no effect if the preview plugin that will be used doesn't use icon overlays. iconAlpha transparency to use for the icon overlay scale if the image is to be scaled to the requested size or returned in its original size save if the image should be cached for later use enabledPlugins if non-zero, this points to a list containing the names of the plugins that may be used. deleteItems true to delete the items when done

UNKNOWN: Creates a new PreviewJob.

PreviewJob

public PreviewJob(ArrayList items, int width, int height, int iconSize, int iconAlpha, boolean scale, boolean save, String[] enabledPlugins)

Method Detail

availablePlugins

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

Returns: the list of plugins

UNKNOWN: Returns a list of all available preview plugins.

className

public String className()

createThumbnail

protected void createThumbnail(String arg1)

getOrCreateThumbnail

protected void getOrCreateThumbnail()

metaObject

public QMetaObject metaObject()

removeItem

public void removeItem(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

UNKNOWN: Removes an item from preview processing.

setIgnoreMaximumSize

public void setIgnoreMaximumSize(boolean ignoreSize)
If ignoreSize is true, then the preview is always generated regardless of the settings

UNKNOWN: If ignoreSize is true, then the preview is always generated regardless of the settings

setIgnoreMaximumSize

public void setIgnoreMaximumSize()

slotResult

protected void slotResult(Job job)

statResultThumbnail

protected boolean statResultThumbnail()

supportedMimeTypes

public static ArrayList supportedMimeTypes()
Returns a list of all supported MIME types. The list can contain entries like text/ (without the space).

Returns: the list of mime types

UNKNOWN: Returns a list of all supported MIME types.