//Auto-generated by kalyptus. DO NOT EDIT.
#include <kurlpixmapprovider.h>
#include <tqpixmap.h>
#include <tqstring.h>

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/KURLPixmapProvider.h>

class KURLPixmapProviderJBridge : public KURLPixmapProvider
{
public:
	KURLPixmapProviderJBridge() : KURLPixmapProvider() {};
	~KURLPixmapProviderJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLPixmapProvider_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KURLPixmapProvider_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLPixmapProvider_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (KURLPixmapProvider*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KURLPixmapProvider_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLPixmapProvider_newKURLPixmapProvider(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KURLPixmapProviderJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KURLPixmapProvider_pixmapFor__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring url)
{
static TQString* _qstring_url = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((KURLPixmapProvider*) QtSupport::getQt(env, obj))->pixmapFor((const TQString&)*(TQString*) QtSupport::toTQString(env, url, &_qstring_url))), "org.trinitydesktop.qt.TQPixmap", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KURLPixmapProvider_pixmapFor__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring url, jint size)
{
static TQString* _qstring_url = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((KURLPixmapProvider*) QtSupport::getQt(env, obj))->pixmapFor((const TQString&)*(TQString*) QtSupport::toTQString(env, url, &_qstring_url), (int) size)), "org.trinitydesktop.qt.TQPixmap", TRUE);
	return xret;
}

