summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KMimeSourceFactory.java
blob: 8e64e9c23ff05b85d0dad145c5d05309912f6e0f (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
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.QtSupport;
import org.kde.qt.TQMimeSourceFactory;

/**

 An extension to TQMimeSourceFactory that uses KIconLoader to
 find images.
 Normally you don't have to instantiate this class at all, TDEApplication does that for
 you automagically and sets TQMimeSourceFactory.setDefaultFactory().
		@author Peter Putzer <putzer@kde.org>
 
		@short    An extension to TQMimeSourceFactory that uses KIconLoader to  find images.

*/
public class KMimeSourceFactory extends TQMimeSourceFactory  {
	protected KMimeSourceFactory(Class dummy){super((Class) null);}
	/**	
		 Constructor.
			@param loader is the iconloader used to find images.
		   		@short    Constructor.
	*/
	public KMimeSourceFactory(KIconLoader loader) {
		super((Class) null);
		newKMimeSourceFactory(loader);
	}
	private native void newKMimeSourceFactory(KIconLoader loader);
	public KMimeSourceFactory() {
		super((Class) null);
		newKMimeSourceFactory();
	}
	private native void newKMimeSourceFactory();
	/**	
		 This function is maps an absolute or relative name for a resource to 
		 the absolute one.
			 To load an icon, prepend the <code>category</code> name before the <code>icon</code> name, in the style
		 of \<category>|\<icon>.
			 Example:
		 <pre> "<img src=\"user|ksysv_start\"/>", "<img src="\desktop|trash\">", ...
		 </pre>
			@param abs_or_rel_name is the absolute or relative pathname.
			@param context is the path of the context object for the queried resource. Almost always empty.
		   		@short    This function is maps an absolute or relative name for a resource to   the absolute one.
	*/
	public native String makeAbsolute(String abs_or_rel_name, String context);
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}