//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.koala;

import org.trinitydesktop.qt.TQt;
import org.trinitydesktop.qt.QtSupport;
import org.trinitydesktop.qt.TQMimeSourceFactory;

/**

 An extension to TQMimeSourceFactory that uses TDEIconLoader 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 TDEIconLoader 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(TDEIconLoader loader) {
		super((Class) null);
		newKMimeSourceFactory(loader);
	}
	private native void newKMimeSourceFactory(TDEIconLoader 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();
}
