summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/PreviewJob.java
blob: c3e00feaf3740dbff445d736bfffa961a5eb9195 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.TQPixmap;
import java.util.ArrayList;

/**
 See {@link PreviewJobSignals} for signals emitted by PreviewJob

*/
public class PreviewJob extends Job  {
	protected PreviewJob(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**	
		 Creates a new PreviewJob.
			@param items a list of files to create previews for
			@param width the desired width
			@param height the desired height, 0 to use the <code>width</code>
			@param 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.
			@param iconAlpha transparency to use for the icon overlay
			@param scale if the image is to be scaled to the requested size or
		 returned in its original size
			@param save if the image should be cached for later use
			@param enabledPlugins if non-zero, this points to a list containing
		 the names of the plugins that may be used.
			@param deleteItems true to delete the items when done
			 		@short    Creates a new PreviewJob.
	*/
	public PreviewJob(ArrayList items, int width, int height, int iconSize, int iconAlpha, boolean scale, boolean save, String[] enabledPlugins, boolean deleteItems) {
		super((Class) null);
		newPreviewJob(items,width,height,iconSize,iconAlpha,scale,save,enabledPlugins,deleteItems);
	}
	private native void newPreviewJob(ArrayList items, int width, int height, int iconSize, int iconAlpha, boolean scale, boolean save, String[] enabledPlugins, boolean deleteItems);
	public PreviewJob(ArrayList items, int width, int height, int iconSize, int iconAlpha, boolean scale, boolean save, String[] enabledPlugins) {
		super((Class) null);
		newPreviewJob(items,width,height,iconSize,iconAlpha,scale,save,enabledPlugins);
	}
	private native void newPreviewJob(ArrayList items, int width, int height, int iconSize, int iconAlpha, boolean scale, boolean save, String[] enabledPlugins);
	/**	
		 Removes an item from preview processing. Use this if you passed
		 an item to filePreview and want to delete it now.
			@param item the item that should be removed from the preview queue
		         		@short    Removes an item from preview processing.
	*/
	public native void removeItem(KFileItem item);
	/**	
		 If <code>ignoreSize</code> is true, then the preview is always 
		 generated regardless of the settings
				@short    If <code>ignoreSize</code> is true, then the preview is always   generated regardless of the settings
	*/
	public native void setIgnoreMaximumSize(boolean ignoreSize);
	public native void setIgnoreMaximumSize();
	/**	
		 Returns a list of all available preview plugins. The list
		 contains the basenames of the plugins' .desktop files (no path,
		 no .desktop).
				@return the list of plugins
         
		@short    Returns a list of all available preview plugins.
	*/
	public static native ArrayList availablePlugins();
	/**	
		 Returns a list of all supported MIME types. The list can
		 contain entries like text/  (without the space).
				@return the list of mime types
         
		@short    Returns a list of all supported MIME types.
	*/
	public static native ArrayList supportedMimeTypes();
	protected native void getOrCreateThumbnail();
	protected native boolean statResultThumbnail();
	protected native void createThumbnail(String arg1);
	protected native void slotResult(Job job);
}