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

/**

 Implementation of KPixmapProvider.
 Uses KMimeType.pixmapForURL() to resolve icons.
 Instatiate this class and supply it to the desired class, e.g.
 <pre>
 KHistoryCombo combo = new KHistoryCombo( this );
 combo.setPixmapProvider( new KURLPixmapProvider );
 [...]
 </pre>
		@author Carsten Pfeiffer <pfeiffer@kde.org>

		@short Resolves pixmaps for URLs.

*/
public class KURLPixmapProvider extends KPixmapProvider  {
	protected KURLPixmapProvider(Class dummy){super((Class) null);}
	/**
		 Returns a pixmap for <code>url</code> with size <code>size.</code>
		 Uses KMimeType.pixmapForURL().
			@param url the URL to fetch a pixmap for
			@param size the size of the pixmap in pixels, or 0 for default.
				@return the resulting pixmap

		@short    Returns a pixmap for <code>url</code> with size <code>size.</code>
		@see TDEIcon#StdSizes
	*/
	public native TQPixmap pixmapFor(String url, int size);
	public native TQPixmap pixmapFor(String url);
	public KURLPixmapProvider() {
		super((Class) null);
		newKURLPixmapProvider();
	}
	private native void newKURLPixmapProvider();
	/** 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();
}
