//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.QMimeSourceFactory;

/**

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

*/
public class KMimeSourceFactory extends QMimeSourceFactory  {
	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();
}
