/***************************************************************************
                            KURLPixmapProvider.java -  description
                             -------------------
    begin                : Sun Jan 27 16:22:17 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Jan 27 16:22:17 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

package org.kde.koala;

import org.kde.qt.*;
import java.util.*;
import java.lang.Error;

/**

 Implementation of {@link KPixmapProvider}

 Uses {@link 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 {@link KMimeType#pixmapForURL}
     
*/
	public native QPixmap pixmapFor( String url, int size);
	public native QPixmap pixmapFor( String url);
}
