/***************************************************************************
                            KURLPixmapProvider.cpp -  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.                                   *
 *                                                                         *
***************************************************************************/

#define _BOOL_H_
#include <kurlpixmapprovider.h>
#include <qstring.h>
#include <qcstring.h>

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KURLPixmapProvider.h>

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KURLPixmapProvider_pixmapFor__Ljava_lang_String_2I(JNIEnv *env, jobject obj, jstring url, jint size)
{
static QString * _qstring_url = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QPixmap (((KURLPixmapProvider*) QtSupport::getQt(env, obj))->pixmapFor((QString&) * (QString *) QtSupport::toQString(env, url, &_qstring_url), (int) size)), "org.kde.qt.QPixmap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KURLPixmapProvider_pixmapFor__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring url)
{
static QString * _qstring_url = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QPixmap(((KURLPixmapProvider*) QtSupport::getQt(env, obj))->pixmapFor((QString&) * (QString *) QtSupport::toQString(env, url, &_qstring_url), 0)), "org.kde.qt.QPixmap", TRUE);
}

